Control Event not firing

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I've created a webControl with a list of buttons. Each of the buttons has a
CommandEventHandler attached but when they are clicked the corresponding
postback does not enter the associated event mehod, Can anyone help please.

Jim
 
Jim,

You have to post an example, as your scenario (while vague) doesn't
indicate that you are doing anything wrong.
 
Hi,

Unless he is creating the control dynamically, if so the controls have to be
recreated in the postback


cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation




Nicholas Paldino said:
Jim,

You have to post an example, as your scenario (while vague) doesn't
indicate that you are doing anything wrong.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Jimmy Jazz said:
Hi,

I've created a webControl with a list of buttons. Each of the buttons has
a
CommandEventHandler attached but when they are clicked the corresponding
postback does not enter the associated event mehod, Can anyone help
please.

Jim
 
Hi,

Yes I am creating them dynamically. How do you mean create them in the
postback do you have an example?

Ignacio Machin ( .NET/ C# MVP ) said:
Hi,

Unless he is creating the control dynamically, if so the controls have to be
recreated in the postback


cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation




Nicholas Paldino said:
Jim,

You have to post an example, as your scenario (while vague) doesn't
indicate that you are doing anything wrong.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Jimmy Jazz said:
Hi,

I've created a webControl with a list of buttons. Each of the buttons has
a
CommandEventHandler attached but when they are clicked the corresponding
postback does not enter the associated event mehod, Can anyone help
please.

Jim
 
Heres a couple of links you should look at.
http://msdn.microsoft.com/library/d...guide/html/cpconcontrolexecutionlifecycle.asp
and http://weblogs.asp.net/vga/archive/2003/08/11/23498.aspx .

My guess is that you should focus on page load() I think that is what you
are missing.

Hth

Denis

Jimmy Jazz said:
Hi,

Yes I am creating them dynamically. How do you mean create them in the
postback do you have an example?

Ignacio Machin ( .NET/ C# MVP ) said:
Hi,

Unless he is creating the control dynamically, if so the controls have to be
recreated in the postback


cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation




message news:[email protected]...
Jim,

You have to post an example, as your scenario (while vague) doesn't
indicate that you are doing anything wrong.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Hi,

I've created a webControl with a list of buttons. Each of the buttons has
a
CommandEventHandler attached but when they are clicked the corresponding
postback does not enter the associated event mehod, Can anyone help
please.

Jim
 
Back
Top