|
-
Dec 3rd, 2008, 04:54 AM
#1
Thread Starter
Hyperactive Member
[2008] Wizard - To validate all steps
hi,
im facing this issue, i have a wizard with 4 steps. let say in 1st step, 2nd step and 3rd step i have requiredfieldvalidator, but when i fill up all the required controls in 1st step and i skip to 4th step by clicking the sidebar link and click the finish button, the 2nd step and 3rd step doesn't validate and it goes through. the question is, how can i invoke all the validations in the finish button clicked? i've googled it and there's a work around from this link http://forums.asp.net/p/1128184/1780641.aspx. but that's not what i want. what i want is, let's take the example above, when i click the finish button, and 2nd step validation is not done, it brings me to 2nd step.
any help would be appreciates.
-
Dec 3rd, 2008, 11:42 AM
#2
Re: [2008] Wizard - To validate all steps
Create your own validation method/logic in the codebehind which occurs when the user goes to the last step and clicks submit - have your code go through the controls and check for values again. This is a valid solution because you should never rely entirely on javascript validation for your form submissions - anyone can disable javascript and bypass it. It is always recommended to perform validation in the codebehind in addition to the client side, which is what your code can do and also incorporate the logic that you want - fill out all steps.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|