Click here to Skip to main content
15,884,177 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: event in custom control Pin
g00fyman9-Jul-06 16:52
g00fyman9-Jul-06 16:52 
GeneralRe: event in custom control Pin
minhpc_bk9-Jul-06 17:13
minhpc_bk9-Jul-06 17:13 
GeneralRe: event in custom control Pin
g00fyman9-Jul-06 17:26
g00fyman9-Jul-06 17:26 
GeneralRe: event in custom control Pin
minhpc_bk9-Jul-06 18:24
minhpc_bk9-Jul-06 18:24 
GeneralRe: event in custom control Pin
g00fyman9-Jul-06 18:41
g00fyman9-Jul-06 18:41 
GeneralRe: event in custom control Pin
g00fyman9-Jul-06 19:05
g00fyman9-Jul-06 19:05 
GeneralRe: event in custom control Pin
g00fyman9-Jul-06 19:20
g00fyman9-Jul-06 19:20 
GeneralRe: event in custom control Pin
minhpc_bk9-Jul-06 19:32
minhpc_bk9-Jul-06 19:32 
The first case does not work as you add the dynamic button in the Render method which occurs after the postback event is processed in the control life cycle, so the event hanler does not execute. In the second case, you use the CreateChildControls method to add the child control, and this method makes sure that the child button is added to the control hierarchy before the postback event is processed, so it works. Generally speaking, you need to make sure that the child control is added to the parent (more general, the control hierarchy) and the handler is wired up to the event before the event is processed in order to make it run properly.
GeneralRe: event in custom control [modified] Pin
g00fyman9-Jul-06 20:59
g00fyman9-Jul-06 20:59 
GeneralRe: event in custom control Pin
minhpc_bk10-Jul-06 17:11
minhpc_bk10-Jul-06 17:11 
GeneralRe: event in custom control Pin
g00fyman10-Jul-06 17:42
g00fyman10-Jul-06 17:42 
QuestionWeb.cofig error [modified] Pin
madalluge9-Jul-06 3:25
madalluge9-Jul-06 3:25 
AnswerRe: Web.cofig error Pin
Guffa9-Jul-06 5:33
Guffa9-Jul-06 5:33 
QuestionDebugging Problem Pin
AliAmjad9-Jul-06 3:05
AliAmjad9-Jul-06 3:05 
AnswerRe: Debugging Problem Pin
Subrahmanyam K9-Jul-06 18:19
Subrahmanyam K9-Jul-06 18:19 
QuestionDisplaying IE Popup before download Pin
VenkataRamana.Gali9-Jul-06 1:09
VenkataRamana.Gali9-Jul-06 1:09 
QuestionHow and Where to store the data Pin
Pentellcc8-Jul-06 13:35
Pentellcc8-Jul-06 13:35 
AnswerRe: How and Where to store the data Pin
Guffa8-Jul-06 23:20
Guffa8-Jul-06 23:20 
GeneralRe: How and Where to store the data Pin
Pentellcc9-Jul-06 7:27
Pentellcc9-Jul-06 7:27 
AnswerRe: How and Where to store the data Pin
Guffa9-Jul-06 10:24
Guffa9-Jul-06 10:24 
Questionalphabetic paging of datagrid with C# Pin
anu_chandu8-Jul-06 12:05
anu_chandu8-Jul-06 12:05 
QuestionASP.Net 2.0 Skins and Themes files to download Pin
Clickok8-Jul-06 12:04
Clickok8-Jul-06 12:04 
QuestionDoubt regarding AJAX Pin
ravindradonkada8-Jul-06 10:35
ravindradonkada8-Jul-06 10:35 
QuestionAbout property of FieldSize in access Pin
KSCsoft8-Jul-06 5:00
KSCsoft8-Jul-06 5:00 
AnswerRe: About property of FieldSize in access Pin
Guffa8-Jul-06 8:32
Guffa8-Jul-06 8:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.