Search

You searched for the word(s): userid:82743

Matching Posts

  • Re: Image button with use submit behavior = false

    It will tell you which control caused the postback; you can test for it in page load perhaps.
    Posted to Web Forms (Forum) by NetProfit on 9/11/2007
  • Re: DropDownList Binding Question

    I will need to take a closer look at your source code. This is the expected behavior if you are binding the DropDownList on every postback; the user selected value gets overwritten. What do you see after the page comes back?
    Posted to Web Forms (Forum) by NetProfit on 9/11/2007
  • Re: DropDownList Binding Question

    You probably want to bind your DropDownlist on the first request. If Not IsPostBack Then ' Bind DropDownList End If
    Posted to Web Forms (Forum) by NetProfit on 9/11/2007
  • Re: Image button with use submit behavior = false

    Have you tried this: Dim ControlID As String = Request.QueryString( "__EVENTTARGET" )
    Posted to Web Forms (Forum) by NetProfit on 9/11/2007
  • Re: How to validate?

    Oh, it might be worthwhile checking out the CustomValidator control also. I haven't used it too much, but it might be useful to you. http://msdn2.microsoft.com/en-us/library/9eee01cx(VS.71).aspx
    Posted to Web Forms (Forum) by NetProfit on 9/11/2007
  • Re: How to validate?

    Well, those are two good reasons. You should be able to accomplish this as suggested earlier, by returning false from your javascript validation function. The only trick is that you also need to use the return statement from your OnClientClick attribute: OnClientClick="return Validate();"
    Posted to Web Forms (Forum) by NetProfit on 9/11/2007
  • Re: How to validate?

    Have you tried using a RequiredFieldValidator control? This is exactly what it is intended for: http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.requiredfieldvalidator(VS.71).aspx
    Posted to Web Forms (Forum) by NetProfit on 9/11/2007
  • Re: Error: The type or namespace name could not be found

    These are warnings, so they won't prevent the code from compiling. It is possible that asp.net 1.1 was used originally.
    Posted to Getting Started (Forum) by NetProfit on 9/11/2007
  • Re: Error: The type or namespace name could not be found

    Check out csc /? You will notice there is a parameter called reference: You can use it to add a reference to a dll (.Net assembly). If you were building your solution with VS2005 you would have added a project or file reference to the project to accomplish the same goal. I suspect you will run into more dependency issues once you've resoved this one. I hope you have your friend's permission to reverse engineer his code. Cheers,
    Posted to Getting Started (Forum) by NetProfit on 9/10/2007
  • Re: Query on Update

    I suspect the problem here is that you are overwriting these textboxes (the ones that won't update) every time your page does a postback. If you look at your page load event handler, it makes a call to Read_Database() on every postback. Note that this code runs before any of your button click event handlers do, so any values entered by the user are being overwritten during page load. By the time your button click event handlers run, the values in the textboxes in question have been replaced with
    Posted to Web Forms (Forum) by NetProfit on 9/10/2007
Page 1 of 122 (1218 items) 1 2 3 4 5 Next > ... Last »