ASP.NET with Javascript

bungpeng

Senior Contributor
Joined
Sep 10, 2002
Messages
906
Location
Malaysia
In ASP.NET, when I use Server Validator controls, system will automatic append some javascript code to my submit button (in client side), so my submit button may look like (in HTML)

<input type="submit" name="ucTemp:_ctl10" value="Save" onclick="setControlDisabled('true');if (typeof(Page_ClientValidate) == 'function') Page_ClientValidate(); " language="javascript" />

The setControlDisabled('true') function is I insert using btnSave.Attributes.Add... function in server side.

Now my problem is, is there anyway I can change the position of these function? It means I want the validation process run first, then only my setControlDisabled function
 
Back
Top