943,871 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 596
  • ASP.NET RSS
Jul 30th, 2009
0

How to combine onclick's

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
dpreznik is offline Offline
38 posts
since Jul 2009
Jul 30th, 2009
1

Re: How to combine onclick's

Hi, check this thread could be helpful for you

http://www.daniweb.com/forums/thread204828.html
Reputation Points: 56
Solved Threads: 56
Posting Pro in Training
jbisono is online now Online
433 posts
since May 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: ASP map locator
Next Thread in ASP.NET Forum Timeline: the best way to use in Map





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC