Event Handlers in InitializeComponent keep disappearing

G

Guest

Hi everyone,
Can someone help me in stopping .NET from removing event handler
declarations for controls on an aspx page please. This has been causing a lot
of headaches as things just mysteriously disappeared and the page suddenly
does not function.
Any help is greatly appreciated.
Calvin
 
E

Eliyahu Goldin

Calvin,

Setup the event in .aspx file like

<asp:datagrid ... OnPreRender="MyPreRencerHandler" ..>

Eliyahu
 
G

Guest

Thanks Eliyahu for your response. However, what about the:
this.Load += new System.EventHandler(this.Page_Load) and click/change events
of other webcontrols such as buttons and dropdown lists?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top