dev-exchange.com logo

dev-exchange.com topic RSS feed

Book mark: Add http://www.dev-exchange.com/viewtopic.php?t=120&start=0&postdays=0&postorder=asc&highlight= to your delicious account Add http://www.dev-exchange.com/viewtopic.php?t=120&start=0&postdays=0&postorder=asc&highlight= to your digg account Add http://www.dev-exchange.com/viewtopic.php?t=120&start=0&postdays=0&postorder=asc&highlight= to your blinklist account Add http://www.dev-exchange.com/viewtopic.php?t=120&start=0&postdays=0&postorder=asc&highlight= to your reddit account Add http://www.dev-exchange.com/viewtopic.php?t=120&start=0&postdays=0&postorder=asc&highlight= to Dzone Add http://www.dev-exchange.com/viewtopic.php?t=120&start=0&postdays=0&postorder=asc&highlight= to your furl account Add http://www.dev-exchange.com/viewtopic.php?t=120&start=0&postdays=0&postorder=asc&highlight= to your stumble account Add http://www.dev-exchange.com/viewtopic.php?t=120&start=0&postdays=0&postorder=asc&highlight= to your Yahoo myweb account
Validator in ASP.Net

 
Post new topic   Reply to topic   printer-friendly view    dev-exchange.com Forum Index -> ASP.NET
View previous topic :: View next topic  
Author Message
Daniel
Contributing Member
Contributing Member


Joined: 14 Feb 2007
Posts: 207

PostPosted: Mon Feb 26, 2007 11:41 am    Post subject: Validator in ASP.Net Reply with quote

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

Smile
Back to top
View user's profile Send private message
net guru
Contributing Member
Contributing Member


Joined: 14 Feb 2007
Posts: 241
Location: New Delhi

PostPosted: Tue Mar 27, 2007 9:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
Daniel
Contributing Member
Contributing Member


Joined: 14 Feb 2007
Posts: 207

PostPosted: Wed Mar 28, 2007 9:41 am    Post subject: Reply with quote

Thanks Net guru for the answer.
Back to top
View user's profile Send private message
nyks
Junior Member
Junior Member


Joined: 26 Nov 2009
Posts: 3

PostPosted: Thu Nov 26, 2009 10:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    dev-exchange.com Forum Index -> ASP.NET All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


© 2008 dev-exchange.com
Powered by phpBB. Theme DEVPPL.