javascript - Asp.net add form onsubmit() from code behind -


how can modify onsubmit parameter of form master page asp.net project in code behind of child page?

i update form value this:

<form id="form1" runat="server" onsubmit="setpostbackvalues()"> 

try below -

((system.web.ui.htmlcontrols.htmlform) master.findcontrol("form1")).attributes.add("onsubmit",             "javascript:return setpostbackvalues();"); 

Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -