Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

no postback happening

Status
Not open for further replies.

ecannizzo

Programmer
Sep 19, 2000
213
US
Hi all,

any idea why this code wouldn't continue to postback after it runs the javascript?

submit.Attributes.Add("onclick", "this.disabled=true;this.value='Please wait...';return true;");

Thanks!
 
I'm not 100% sure about this... but, adding the onclick attribute to the submit button would replace the current onclick handler. the default handler has some webform javascript vodo already attached to it (I think). So in essence you are replacing the handler and the form is not submitted in a way webforms understands.

Jason Meckley
Programmer
Specialty Bakers, Inc.

faq855-7190
faq732-7259
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top