Controlling Page Load Using Update Panel

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sweatha
    New Member
    • Mar 2008
    • 44

    Controlling Page Load Using Update Panel

    I have designed the login form with 3 panels. In the first panel I have the login verification such as login id, password, login button and forgot password link button. In the second panel I have designed the registration details with validation checks by using the validation controls. The third panel will get visible only if the "forgot password?" option is clicked in the first panel.

    But the issue is if I click the login button in the first panel, all the validation error messages are getting displayed bcz of the page load.

    To avoid this
    I have kept the password textbox inside the update panel and set the triggers property with control id as "login button" and event as "click". But it is not working.


    There is also another issue that if I click the "forgot password?" link button, the panel2 is not getting visible even though I have made "panel2.visible =false" in page load() and "Panel2.visible =True" in Link_Click event.
  • DrBunchman
    Recognized Expert Contributor
    • Jan 2008
    • 979

    #2
    Originally posted by sweatha
    To avoid this
    I have kept the password textbox inside the update panel and set the triggers property with control id as "login button" and event as "click". But it is not working.
    What do you mean by "it's not working"? Is it throwing an error or just not behaving as you would expect?

    There is also another issue that if I click the "forgot password?" link button, the panel2 is not getting visible even though I have made "panel2.visible =false" in page load() and "Panel2.visible =True" in Link_Click event.
    Put a breakpoint at the start of your Link_Click event - is it definitely being hit?

    Dr B

    Comment

    Working...