Advertisement

10.24.2007 at 08:51AM PDT, ID: 22914975
[x]
Attachment Details

add onclick event after WebForm_DoPostBackWithOptions?

Asked by tmueller18 in Programming for ASP.NET

Tags: webform_dopostbackwithoptions

When I add an onclick event to a button it renders it before the WebForm_DoPostBackWithOptions function. ( I have validation controls running)

 <INPUT id=ctl00_ContentPlaceHolder1_btnSave onclick='javascript: resetFlag;WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl00$ContentPlaceHolder1$btnSave", "", true, "", "", false, false)); resetFlag();' type=submit value=Save name=ctl00$ContentPlaceHolder1$btnSave>


I want to add resetFlag after the WebForm_DoPostBackWithOptions like this.

 <INPUT id=ctl00_ContentPlaceHolder1_btnSave onclick='javascript: WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl00$ContentPlaceHolder1$btnSave", "", true, "", "", false, false)); resetFlag();' type=submit value=Save name=ctl00$ContentPlaceHolder1$btnSave>

Is the possible?
   
Start Free Trial
[+][-]10.24.2007 at 10:20AM PDT, ID: 20140953

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.24.2007 at 11:25AM PDT, ID: 20141582

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Programming for ASP.NET
Tags: webform_dopostbackwithoptions
Sign Up Now!
Solution Provided By: tmueller18
Participating Experts: 2
Solution Grade: B
 
 
[+][-]10.31.2007 at 05:44PM PDT, ID: 20190202

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628