C
Chris Barrow
Hi everyone,
Does anyone know if it is possible to append your own
javascript function onto the end of a button's onclick
method when validation controls are used?
Here is an example of the script that is generated when
validation controls are use on the form:
onclick="{if (typeof(Page_ClientValidate) != 'function'
|| Page_ClientValidate()) __doPostBack('btnOk','')}
What I would like to do is append my own custom function
onto the end of this statement. For example:
onclick="{if (typeof(Page_ClientValidate) != 'function'
|| Page_ClientValidate()) __doPostBack
('btnOk','')};showFormSummary();"
Unfortunately I been unable to do so. Regardless of how I
try to append this statement, whether it is in the .aspx
page using the button's client onclick method, or using
the button's "attributes" property collection on the
server side, the validation codes are always appended last
after my own script statements.
If anyone has some suggestion on the matter, I would
greatly appreciate it.
Thanks,
Chris...
Does anyone know if it is possible to append your own
javascript function onto the end of a button's onclick
method when validation controls are used?
Here is an example of the script that is generated when
validation controls are use on the form:
onclick="{if (typeof(Page_ClientValidate) != 'function'
|| Page_ClientValidate()) __doPostBack('btnOk','')}
What I would like to do is append my own custom function
onto the end of this statement. For example:
onclick="{if (typeof(Page_ClientValidate) != 'function'
|| Page_ClientValidate()) __doPostBack
('btnOk','')};showFormSummary();"
Unfortunately I been unable to do so. Regardless of how I
try to append this statement, whether it is in the .aspx
page using the button's client onclick method, or using
the button's "attributes" property collection on the
server side, the validation codes are always appended last
after my own script statements.
If anyone has some suggestion on the matter, I would
greatly appreciate it.
Thanks,
Chris...