C
Caspy
When add a button to a web form, if the button can CauseValidation, the
server emits client side javascript as:
<input type="submit" name="Button1" value="Button"
onclick="if (typeof(Page_ClientValidate) == 'function')
Page_ClientValidate(); "
language="javascript" id="Button1" />
What I want to let the emitted javascript like :
<input type="submit" name="Button1" value="Button"
onclick="if (typeof(Page_ClientValidate) == 'function')
Page_ClientValidate();
if (Page_IsValid !=null && Page_IsValid == true)
DoSomethingIWant();"
language="javascript" id="Button1" />
If I override the Render() method, the buildin jscript always emitted. How
can I get the exactly I want above?
Thanks in advance.
server emits client side javascript as:
<input type="submit" name="Button1" value="Button"
onclick="if (typeof(Page_ClientValidate) == 'function')
Page_ClientValidate(); "
language="javascript" id="Button1" />
What I want to let the emitted javascript like :
<input type="submit" name="Button1" value="Button"
onclick="if (typeof(Page_ClientValidate) == 'function')
Page_ClientValidate();
if (Page_IsValid !=null && Page_IsValid == true)
DoSomethingIWant();"
language="javascript" id="Button1" />
If I override the Render() method, the buildin jscript always emitted. How
can I get the exactly I want above?
Thanks in advance.