Click here to Skip to main content
15,898,035 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I want to know How to use bootstrap validation with asp.net controls
Posted
Updated 31-May-16 21:04pm

Read jQuery validations plugin documentation on how to use it. You see there are several examples and live demos:

http://jqueryvalidation.org/documentation/[^]
 
Share this answer
 
C#
RunAt="server" changes names / id's of controls. Instead of:



...
fields: {
firstname: {
... validiation code
}
}

TRY this

fields: {
<%= firstname.UniqueID %>: {
... validiation code
}
}

Look at this
 
Share this answer
 
Comments
CHill60 1-Jun-16 6:20am    
"RunAt="server" changes names / id's of controls" - Only if you are using Master pages

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