Last post Sep 11, 2008 09:33 AM by DkUltra
Sep 11, 2008 08:02 AM|dabooj|LINK
I've got a website under development which uses 2 panels to dispaly data (mainly textboxes). The 1st panel is enabled but 2nd one is disabled. I want to be able to enable the 2nd panel when a user has completed the details in the 1st panel correctly. I have
3 textboxes in the 1st panel & they all need values entered by the user. Once the correct data has been entered in the 1st panel's textboxes i want the 2nd textbox enabled automatically.
The nearest thing i could find would be the textchanged property of a textbox. I tried this but it would not go into the code when i typed anything in the textbox. Even still, i would not want to a code each time a characters is changed in the textboxes.
What is the best way to achive this?
Sep 11, 2008 08:54 AM|kutind|LINK
textbox textchanged property fires when Enter is clicked inside textbox or textbox looses focus, so it can be the right solution.
Sep 11, 2008 08:56 AM|rtpHarry|LINK
Put the panels on seperate "pages" inside a Wizard control.
The asp validators will fire between pages and you cant get to the next page until you have filled out the boxes correctly.
Sep 11, 2008 09:33 AM|DkUltra|LINK
Looking at --Once the correct data has been entered in the 1st panel's textboxes --,
a person could conclude that there is some validation going on. create a custom validator to validate the text boxes and in the final validation enable the 2nd panel.
Hope this helps