User Profile

Collapse

Profile Sidebar

Collapse
stoogots2
stoogots2
Last Activity: Dec 28 '10, 11:23 PM
Joined: Sep 21 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Custom validation problem with Radiobuttonlist

    This is a strange one. My custom validator function is executing onclick (or onclientclick) of my radiobuttonlist , instead of when I click on my submit button. Autopostback is set to false, so I'm extremely confused. When I run the app and click on one of the status list items, it is calling the executing the ValidateRBLStat us javascript method (I have a breakpoint set in VS2008).

    Code:
                <asp:RadioButtonList ID="rblStatus"
    ...
    See more | Go to post

  • stoogots2
    replied to Help doing simple math in a datagridview
    Not sure if this is the most efficient, but I would create TemplateField in your GridView and override the RowCreated event to do the math.
    See more | Go to post

    Leave a comment:


  • stoogots2
    replied to 3 tier architecture
    This link might help.

    http://www.microsoft.com/belux/msdn/...tt/ntier2.mspx...
    See more | Go to post

    Leave a comment:


  • stoogots2
    replied to configuration variable access
    What it sounds like to me is that you need your config file to be named as your executablename. exe.config. That is how my config files are named after compilation. Just a thought.
    See more | Go to post

    Leave a comment:


  • I don't understand what your table looks like. If you are running 3 queries, each returning 1 value which you want to use as the value of your textbox, use ExecuteScalar method of the SqlCommand object.
    and then set your values for your textboxes like this:

    TextBox2.Text = (string)YourSql CommandObject.E xecuteScalar();

    otherwise you will set TextBox.Text equal to whatever construct you have populated from the...
    See more | Go to post

    Leave a comment:


  • stoogots2
    replied to Bulk Insert In C#.net?
    FYI, the SQLBulkCopy is very similar in performance to the BULK INSERT statement you specify above IF you set the Table Lock on.
    See more | Go to post

    Leave a comment:


  • stoogots2
    replied to net use in c#
    Just a suggestion that you may want to use this method vs opening a dos window and issuing the "net use" command.

    http://www.codeproject.com/KB/system/mapnetdrive.aspx...
    See more | Go to post

    Leave a comment:


  • stoogots2
    replied to Process.WaitForExit Question
    Yes, there is a need for it to waitforexit. It only gets killed off if there is not a problem, so in most cases it won't get killed. I kill the process only when it has run for twice the "normal" completion period without completing. The problem is that if there isn't a problem, it doesn't seem to return from WaitForExit every time. I have 3 other instances of the same program running and returning from WaitForExit every time. It is...
    See more | Go to post

    Leave a comment:


  • stoogots2
    replied to Process.WaitForExit Question
    The main thread just waits a configurable amount of time and Process.Kills the worker thread if it doesn't proceed past p.WaitForExit() .
    See more | Go to post

    Leave a comment:


  • stoogots2
    replied to Process.WaitForExit Question
    I have every indication that the process is exiting except that I do not see the WaitForExit completing and the paused thread continuing. The output of the process is there and in all other cases where this code is executing, the process has exited. There shouldn't be anything different about the 5th machine running the same application/framework/operating system/service pack.
    See more | Go to post

    Leave a comment:


  • stoogots2
    replied to Process.WaitForExit Question
    Thanks for the response Plater. The process usually takes about 90 minutes to complete but another thread checks every minute to make sure it takes no longer than 180 minutes or it kills it. I saw in the log that the process got killed after 180 minutes although the output that was expected from the process was completed in the normal timeframe. I've seen this more than once, but only on this one computer. I have 3 other computers running the...
    See more | Go to post

    Leave a comment:


  • stoogots2
    started a topic Process.WaitForExit Question

    Process.WaitForExit Question

    I have written a windows application that kicks off another process and then Waitsforexit. I have one old crappy machine on which this works great and has been for months and in the last couple of months I've seen that on a newer faster machine that it doesn't seem to work reliably. Both are XP SP3 and the app utilizes Framework 2.0. Any ideas?

    Code:
    ProcessStartInto ps=new ProcessStartInfo();
    ps.FileName=sFilename;
    ...
    See more | Go to post

  • stoogots2
    replied to LINQ to XML Question
    Resolved

    Resolved. Not sure why this didn't work the first time...

    Here is the code to find the matching elements / remove them / and save the xml file.

    Code:
    XDocument xd = XDocument.Load(sXmlFile);
                    var x = from c in xd.Descendants("second")
                            where c.Attribute("Name").Value == "Test"
                            select
    ...
    See more | Go to post

    Leave a comment:


  • stoogots2
    replied to Check for empty text file
    I agree, definitely check the file size with FileInfo.Length and define what you should do if the file is empty, etcetera.
    See more | Go to post

    Leave a comment:


  • stoogots2
    started a topic LINQ to XML Question

    LINQ to XML Question

    I have the following XML structure from which I want to select/remove the "second" Element which has the Attribute "Name" whose value = "Test"
    Code:
    <Application>
    <first>
    <second Name="Test">
    </second>
    <second Name="Whatever">
    </second>
    </first>
    </Application>
    
    var x = from c in
    ...
    See more | Go to post

  • stoogots2
    replied to WCF Console App - problem
    in .NET
    Thanks for your response, Frinny. I'm absolutely certain the the code change is not the problem because it is in a method that is not being executed. When I start the WCF program it shuts down, and the web application that contacts the WCF app gets a Communication object error. If the web application connected successfully, the code that changed would be executed. I am just going to have to dig in to WCF more than I did when I wrote the thing....
    See more | Go to post

    Leave a comment:


  • stoogots2
    replied to Error in hosting an application
    in .NET
    Every time I have seen something like this, it was because I wasn't using a proper Url for the image.
    See more | Go to post

    Leave a comment:


  • stoogots2
    started a topic WCF Console App - problem
    in .NET

    WCF Console App - problem

    Ok, this console app that I wrote has an endpoint that listens on a TCP port. A web application sends requests to it. Both of these have been running successfully in production for the last 6 months. Anyway, I made a minor change to the code in the console app for an exception that I get from time to time, and now when I test it the web app can no longer connect (Communication Object is in a Faulted State). The code change is insignificant. ...
    See more | Go to post

  • The link isn't working for me. I am actually writing code on this today, so any more pointers are appreciated. I've chosen the Event route, but I don't understand how that gets around the multiple thread reading and writing to a file/accessing controls problem.
    See more | Go to post

    Leave a comment:


  • You are exactly right. The problem accessing a log file with more than one thread has been killing me. Thank you for the suggestion, and I will try to implement something similar in my code (and let you know if I get it to work).

    Regards,

    N
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...