| View previous topic :: View next topic |
| Author |
Message |
Daniel Contributing Member

Joined: 14 Feb 2007 Posts: 207
|
Posted: Mon Feb 26, 2007 11:41 am Post subject: Validator in ASP.Net |
|
|
Hi,
I need to validate a web form with ASP.Net validator? What is the best approach to do this? Could you please show me an example about how to do this?
Thanks
 |
|
| Back to top |
|
 |
net guru Contributing Member

Joined: 14 Feb 2007 Posts: 241 Location: New Delhi
|
Posted: Tue Mar 27, 2007 9:10 pm Post subject: |
|
|
Here is an example for form Validation using validator controls
<form id="form1" runat="server">
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1"
ErrorMessage="RequiredFieldValidator"></asp:RequiredFieldValidator>
</form>
_________________ Thanks
NET GURU |
|
| Back to top |
|
 |
Daniel Contributing Member

Joined: 14 Feb 2007 Posts: 207
|
Posted: Wed Mar 28, 2007 9:41 am Post subject: |
|
|
| Thanks Net guru for the answer. |
|
| Back to top |
|
 |
nyks Junior Member

Joined: 26 Nov 2009 Posts: 3
|
Posted: Thu Nov 26, 2009 10:58 pm Post subject: |
|
|
Hi,
Yes you can validate your Input Data through validators.
There are 5 validators to be used.
Please i cant give you that code here. but please use google for more information. |
|
| Back to top |
|
 |
|