troubleshooting Question

I have a custom control with a button. The button click event fires if the page is without master. But, after the master is added, the event does not fire

Avatar of tnova1
tnova1 asked on
.NET ProgrammingC#ASP.NET
14 Comments1 Solution605 ViewsLast Modified:
To all,

Have anyone run into the problem that custom event won't fire:

I have a custom control with a button. The button click event fires if the page is without master. But, after the master is added, the event does not fire.

The custom tag is defined in caller.aspx as:

<cc1:popupcontrol id="ccPopTEC" runat="server" ButtonText="Add TEC" ButtonWidth="60px"             PopupHeightPx="340" PopupWidthPx="320" TextBoxWidth="0px" TargetURL="ECPTecAdd.aspx"
AutoPostBack="True"></cc1:popupcontrol>

The event in the caller.aspx.cs is:
      void ccPopTEC_Changed(object sender, EventArgs e)
      {
         if (ccPopTEC.Text.Length > 0)
         {
                  //process the custom textbox value
         }
      }

The callee(TargetURL)  ECPTecAdd.aspx just bring up a list defined with <select></select> html tag, and
set the value for the custom textbox as
         PopupControl.ReturnValue(str.ToString(), "");   // a public function of the custom control.

I worked perfect w/o the master page.

I put a break point insid the function eccPopTEC_Changed(object sender, EventArgs e), but the debugger won't kick in after I added the master page.

Please help!
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 14 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 14 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros