How to combine onclick's

Reply

Join Date: Jul 2009
Posts: 26
Reputation: dpreznik is an unknown quantity at this point 
Solved Threads: 0
dpreznik dpreznik is offline Offline
Light Poster

How to combine onclick's

 
0
  #1
Jul 30th, 2009
In my Page_Load() I have the following code:

Button btnCancel = wizSummaryDetails.FindControl("FinishNavigationTemplateContainerID").FindControl("CancelButton") as Button;
            btnCancel.Attributes.Add("onclick", "setSessionAction('NONE');");

Also, I have the following function that handles clicks on the same button:

protected void DetailCancelButton_Click(object sender, EventArgs e)
        {
            wizSummaryDetails.MoveTo(wizStepSummary);
            Session["Action"] = ACTION.NONE;
            LoadData();
        }
But if I have that part in Page_Load(), the DetailCancelButton_Click() is never called. But I need them both.

Could anybody please help me?

Thanks,

Dmitriy
Reply With Quote Quick reply to this message  
Join Date: May 2009
Posts: 196
Reputation: jbisono is an unknown quantity at this point 
Solved Threads: 24
jbisono's Avatar
jbisono jbisono is online now Online
Junior Poster

Re: How to combine onclick's

 
1
  #2
Jul 30th, 2009
Hi, check this thread could be helpful for you

http://www.daniweb.com/forums/thread204828.html
If your already resolved your issue, flag it as solved.
José Bisonó
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 337 | Replies: 1
Thread Tools Search this Thread



Tag cloud for ASP.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC