Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Apr 05, 2012 03:25 PM by goud2010
Member
47 Points
74 Posts
Apr 03, 2012 06:32 AM|LINK
Hi,
please refer this below link, like this i want to insted of <input> i want <asp:textbox>
http://www.position-relative.net/creation/formValidator/demos/demoRegExp.html
All-Star
30184 Points
4906 Posts
Apr 03, 2012 06:58 AM|LINK
Try this-
http://www.dotnetcurry.com/ShowArticle.aspx?ID=310
Star
14919 Points
1537 Posts
Microsoft
Apr 05, 2012 06:25 AM|LINK
hi goud2010,
you can simply use <asp:textbox> to instead of <input>
for example:
<input value="+1 305 768 23 34 ext 23 BUG" class="validate[custom[phone]] text-input" type="text" name="telephone" id="telephone" />
the textbox looks like: <asp:TextBox ID="telephone" runat="server" Text="+1 305 768 23 34 ext 23 BUG" CssClass="validate[custom[phone]] text-input" ></asp:TextBox>
in javascript you can use $('#<%=TextBoxID.ClientID %>') to reference the server control
Hope this helps, thanks.
26 Points
20 Posts
Apr 05, 2012 10:34 AM|LINK
Hii Groud you can use input tags in asp.net, Just put one property in it [runat="server"] it will work as a asp.net control
For example:
<input value="192.168.3." class="validate[required,custom[ipv4]] text-input" type="text" name="ip" id="ip" runat="server" />
637 Points
268 Posts
Apr 05, 2012 12:08 PM|LINK
goud2010 please refer this below link, like this i want to insted of <input> i want <asp:textbox>
You can do it very easily like
<script> jQuery(document).ready(function(){ // binds form submission and fields to the validation engine jQuery('.validate[custom[phone]]text-input').validationEngine('attach'); }); </script> e.g change this <input value="+1 305 768 23 34 ext 23 BUG" class="validate[custom[phone]] text-input" type="text" name="telephone" id="telephone" /> into <asp:TextBox runat="server" Text="+1 305 768 23 34 ext 23 BUG" CssClass="validate[custom[phone]]text-input" Id="telephone" /> Hope it will solve your problem.
Apr 05, 2012 03:25 PM|LINK
http://www.zachhunter.com/2010/06/jquery-validation-with-asp-net/
http://www.codeproject.com/Articles/213138/An-Example-to-Use-jQuery-Validation-Plugin
http://www.codeproject.com/Articles/275056/Custom-Client-Side-Validation-in-ASP-NET-MVC3
http://www.codeproject.com/Articles/348599/Lets-start-jQuery-with-ASP-NET
http://jquerybyexample.blogspot.com/
http://www.c-sharpcorner.com/uploadfile/prathore/validation-using-jquery-with-Asp-Net/
http://www.c-sharpcorner.com/UploadFile/sapnabeniwal/required-field-validation-error-in-group-using-jquery/
http://www.c-sharpcorner.com/UploadFile/sapnabeniwal/required-fields-validation-using-jquery/
goud2010
Member
47 Points
74 Posts
Jquery Validation in asp.net
Apr 03, 2012 06:32 AM|LINK
Hi,
please refer this below link, like this i want to insted of <input> i want <asp:textbox>
http://www.position-relative.net/creation/formValidator/demos/demoRegExp.html
Venkat Goud.
asteranup
All-Star
30184 Points
4906 Posts
Re: Jquery Validation in asp.net
Apr 03, 2012 06:58 AM|LINK
Hi,
Try this-
http://www.dotnetcurry.com/ShowArticle.aspx?ID=310
Anup Das Gupta
Mark as Answer if you feel so. Visit My Blog
Yanping Wang...
Star
14919 Points
1537 Posts
Microsoft
Re: Jquery Validation in asp.net
Apr 05, 2012 06:25 AM|LINK
hi goud2010,
you can simply use <asp:textbox> to instead of <input>
for example:
<input value="+1 305 768 23 34 ext 23 BUG" class="validate[custom[phone]] text-input" type="text" name="telephone" id="telephone" />
the textbox looks like: <asp:TextBox ID="telephone" runat="server" Text="+1 305 768 23 34 ext 23 BUG" CssClass="validate[custom[phone]] text-input" ></asp:TextBox>
in javascript you can use $('#<%=TextBoxID.ClientID %>') to reference the server control
Hope this helps, thanks.
Feedback to us
Develop and promote your apps in Windows Store
NeeleshSingh
Member
26 Points
20 Posts
Re: Jquery Validation in asp.net
Apr 05, 2012 10:34 AM|LINK
Hii Groud you can use input tags in asp.net, Just put one property in it [runat="server"] it will work as a asp.net control
For example:
<input value="192.168.3." class="validate[required,custom[ipv4]] text-input" type="text" name="ip" id="ip" runat="server" />mhbalti
Member
637 Points
268 Posts
Re: Jquery Validation in asp.net
Apr 05, 2012 12:08 PM|LINK
You can do it very easily like
<script> jQuery(document).ready(function(){ // binds form submission and fields to the validation engine jQuery('.validate[custom[phone]]text-input').validationEngine('attach'); }); </script> e.g change this <input value="+1 305 768 23 34 ext 23 BUG" class="validate[custom[phone]] text-input" type="text" name="telephone" id="telephone" /> into <asp:TextBox runat="server" Text="+1 305 768 23 34 ext 23 BUG" CssClass="validate[custom[phone]]text-input" Id="telephone" /> Hope it will solve your problem."A candle loses nothing by lighting another candle."
goud2010
Member
47 Points
74 Posts
Re: Jquery Validation in asp.net
Apr 05, 2012 03:25 PM|LINK
Hi,
http://www.zachhunter.com/2010/06/jquery-validation-with-asp-net/
http://www.codeproject.com/Articles/213138/An-Example-to-Use-jQuery-Validation-Plugin
http://www.codeproject.com/Articles/275056/Custom-Client-Side-Validation-in-ASP-NET-MVC3
http://www.codeproject.com/Articles/348599/Lets-start-jQuery-with-ASP-NET
http://jquerybyexample.blogspot.com/
http://www.dotnetcurry.com/ShowArticle.aspx?ID=310
http://www.c-sharpcorner.com/uploadfile/prathore/validation-using-jquery-with-Asp-Net/
http://www.c-sharpcorner.com/UploadFile/sapnabeniwal/required-field-validation-error-in-group-using-jquery/
http://www.c-sharpcorner.com/UploadFile/sapnabeniwal/required-fields-validation-using-jquery/
Venkat Goud.