How to validate the jquery fun with master page in asp.net??
Can any one help me how to validate the emptiness of the asp.net text box by using jquery??
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Priya AvanigaddaPosted Feb 12, 2015, 4:19 AM
Manish Kumar ChoudharyPosted Feb 12, 2015, 4:16 AM
Priya AvanigaddaPosted Feb 12, 2015, 3:53 AM
Here is my sample code and this code is working with out contentplaceholder but it's not working with contentplace holder .
Manish Kumar ChoudharyPosted Feb 12, 2015, 3:39 AM
have you import jquery.validate.min.js?
Priya AvanigaddaPosted Feb 12, 2015, 3:26 AM
Manish Kumar ChoudharyPosted Feb 12, 2015, 2:41 AM
Use ClientIDMode="Static" inside the control and then use the id of the control.
Actually when the control is place inside content page the id and name of the control has been change while rendering the page in browser. so your validation is not working I think. I face the same error once. check the page source of your page in browser for more details.
Manish Kumar ChoudharyPosted Feb 12, 2015, 2:35 AM
it will help u
Priya AvanigaddaPosted Feb 12, 2015, 2:33 AM
Manish Kumar ChoudharyPosted Feb 12, 2015, 2:29 AM
Go through my article it will help you
http://www.c-sharpcorner.com/UploadFile/ee01e6/jquery-validation-with-Asp-Net-web-form/