I have an application in asp.net 4,0, I have a master page in admin section ,I place a jquery validation engine plugin inside master page and call it in the master page like this
I have a content page which page has both a grid view and a form .All contents are inside a Update panel ,So when I click the save button the postback occures without validate the fiels ,The message are show but it is not validate the form before postbackk,Also
Inside grid I have two Imagebutton for Update and delete the record .So when I click Update Image button it shows me as well as validation so the fields are not fill as per Id.It Violate the validation.
Can Any one help me how I validate the validation only for the specific save button not other button inside the update panel.
ajaya_rout
Member
156 Points
47 Posts
JQuery Validation for ASP.NET master Page
Dec 08, 2012 04:46 AM|LINK
Hello,
I have an application in asp.net 4,0, I have a master page in admin section ,I place a jquery validation engine plugin inside master page and call it in the master page like this
<script src="AppScript/jquery.validationEngine-en.js" type="text/javascript" charset="utf-8"></script>
<script src="AppScript/jquery.validationEngine.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
jQuery(document).ready(function () {
jQuery("#form12").validationEngine();
});
function pageLoad(sender, args) {
if (args.get_isPartialLoad()) {
jQuery(document).ready(function () {
jQuery("#form12").validationEngine();
});
}
}
I have a content page which page has both a grid view and a form .All contents are inside a Update panel ,So when I click the save button the postback occures without validate the fiels ,The message are show but it is not validate the form before postbackk,Also Inside grid I have two Imagebutton for Update and delete the record .So when I click Update Image button it shows me as well as validation so the fields are not fill as per Id.It Violate the validation.
Can Any one help me how I validate the validation only for the specific save button not other button inside the update panel.
Its urgent!
Yanping Wang...
Star
14863 Points
1527 Posts
Microsoft
Re: JQuery Validation for ASP.NET master Page
Dec 10, 2012 01:42 AM|LINK
Hi ajaya_rout,
Thanks for your post.
One option is to try to move the validation form and the related javascript in an iframe, then include the iframe in master page.
Please let me know how it works, thanks.
Feedback to us
Develop and promote your apps in Windows Store
asteranup
All-Star
30184 Points
4906 Posts
Re: JQuery Validation for ASP.NET master Page
Dec 10, 2012 03:12 AM|LINK
Hi,
Check these posts-
http://delicious.com/anupdg/validation+masterpage
Anup Das Gupta
Mark as Answer if you feel so. Visit My Blog