Click here to Skip to main content
15,919,749 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
If i have to validate one field, I can use required feild validator, but I have a lot of feild in the form.
So, kindly reply what can I do?

Thanks in advance for your responses.
Posted
v2
Comments
MAU787 20-Jul-12 2:14am    
what r u taking abt??
ssd_coolguy 20-Jul-12 2:20am    
hey you just have a look on link which i have provided for your previous quetion..
You will get all answers for validation

You are posting number of question with title 'Question regarding ASP.NET'. You should read on the way question should be posted before posting it. Read here: http://www.codeproject.com/Questions/ask.aspx[^]

Your title should be short and sweet related to what you ask.
You need to tag it correctly to ASP.NET if it is related to that
You need to use comment feature using 'having a Question or comment' link to discuss an answer instead of posting a new question as a followup
You should frame your question properly with details on what and why you are doing something and where are you stuck.



Now, even if you have multiple fields, required field validator for every field is OK. In case you are skeptical on using them then you at the time of page submit, call a JS method where check all the input field values. If any one is empty and is required then show an alert and stop submit of the page.

Try out and now ask specific question.
 
Share this answer
 
hi dash ,
YOU can proceed any validator controls in form, but here one control supports only unique validator control.

ex:

textboxid1-----> requirefielvalidator1,rangevalidator1

textboxid2 ----> requirefielvalidator2,rangevalidator2

but suppose here if u take rangevalidator1 for both textbox controls it will n't support.


Now u can keep any validators depend on your requirement but please keep the in mind example variation .
thank you
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900