User Profile

Collapse

Profile Sidebar

Collapse
stlarmon
stlarmon
Last Activity: May 10 '07, 02:02 PM
Joined: Apr 6 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Excuse my C#... I usually program in VB.
    I added a path string and event log, and installed the service.
    It worked perfectly. The only thing I can think of that would be failing is the path you're using. If I were you I would add a timer to the service and move the thread start to the timer elapsed event. Then I would compile and install a debug version and attach to the process while it's running on the server. This way you could...
    See more | Go to post

    Leave a comment:


  • stlarmon
    replied to Display raw XML in an ASP.NET page
    in .NET
    If you have the information in a ByteArray you can use Response.Write to send it to the browser.

    The Variable xmlByte is a ByteArray that contains the raw XML from memory.

    Dim ue As New UTF8Encoding
    Dim XMLText As String = ue.GetChars(xml Byte, 0, xmlByte.Length)
    Response.Write( XMLText)

    Let me know if this helps
    See more | Go to post

    Leave a comment:


  • Also, If you're going to use the system account; make sure the System account has the approriate NTFS permissions and Permissions to the Share.
    See more | Go to post

    Leave a comment:


  • The problem is that the drive is mapped to your username. Unless you're starting the service under your user account that mapped drive doesn't exist. Generally the service starts under the Local System Account. You have two options here. First is to start the service under your user account. Second is to use the full UNC path rather than the mapped Drive Path.
    Ex.
    H:\Documents (Doesn't Exist)
    \\ComputerName\ Documents\ ...
    See more | Go to post

    Leave a comment:


  • stlarmon
    replied to XML Element to Variable
    in .NET
    Dataset's are a great way to read XML
    Try this...

    Dim ds As New DataSet
    ds.ReadXml("c:\ file.xml")
    Dim elementString = ds.Tables(0).Ro ws(0).Item(0)...
    See more | Go to post

    Leave a comment:


  • stlarmon
    replied to Dynamically Added Linkbutton EventHandler
    in .NET
    Sorry about the lbl... I've been working too long. I meant to say lnk_ for link.
    I'll check to see if multiple controls load through the AddControl Sub....
    See more | Go to post

    Leave a comment:


  • stlarmon
    replied to Dynamically Added Linkbutton EventHandler
    in .NET
    Your code worked fine for me.
    I would verify the names of the controls you're loading.
    For Example: You're trying to find lbCalc (usually people use lblCalc).

    Does the control show up on the page?
    Is there an error your getting?

    Let me know if I can be of any more help...
    See more | Go to post

    Leave a comment:


  • I've found that one of the best ways to read xml is through a dataset.
    I'm not sure what platform you're running, but in vb.net you could:

    Dim ds as new dataset
    ds.ReadXml("c:\ file.xml")

    Now all the XML is stored in a dataset and can be searched by Table, Row and Column.

    If you're trying to get all the data, use nested for loops.

    For each d as datatable in ds.tables...
    See more | Go to post

    Leave a comment:


  • stlarmon
    replied to Get the number of days in a month
    in .NET
    I don't know of any built in classes that can handle this, but you could very easily write a function for it.


    Declare a start date based on the first day of the month and year specified.
    Declare an end Date that adds 1 month the start
    Return a Date Difference in Days based on the Start and End Dates.

    See Code below for a working function
    ------------------------------------------------------------------------...
    See more | Go to post

    Leave a comment:


  • You could also use Process.Start

    ex.
    Process.Start(" C:\windows\syst em32\calc.exe")
    See more | Go to post

    Leave a comment:


  • stlarmon
    replied to Disabling Main Form
    in .NET
    From Form1 use something like

    Dim f As New Form2
    f.ShowDialog()

    The ShowDialog makes Form2 a Modal Form so Form1 can be seen but not accessed. Hope this helps.
    See more | Go to post

    Leave a comment:


  • stlarmon
    replied to Button images
    in .NET
    In VB.net you could use

    Button1.Image = New Bitmap(Button1. Image, Button1.Width, Button1.Height)

    Hope this helps
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...