ASP Disable button and run function

YoungOBi

New Member
I want a webpage that will disable a button and run the function, after the page is refreshed the button will be re-enabled. The button are created with the method below. The problem is when I click on the button, it can disable but it wont runs the function, the page won't even refresh. No idea where the problem arise from.\[code\]set common = server.createobject("Pen_Ebizcommonproc.stringproc")\[/code\]\[code\]<%=common.writeButton ("Submit1","Submit","Create New Sales Contract",30,"onclick=""this.disabled=true;CheckGWidth(this.form);this.form.ContractType.value='http://stackoverflow.com/questions/15754997/N';""")%>\[/code\]
 
Back
Top