When Amending A Page, Delegate Hookup Lost

G

Guest

When I'm changing a 1.1 page, sometimes I remove a control but its
declaration remains in the code-behind. Other times I add a control and no
declaration is inserted and sometimes the Page_Load delegate hookup
disappears. Am I doing something wrong?

cheers,

Jeb
 
E

Eliyahu Goldin

Jeb,

After adding a control in Html View you need to switch to Design View to
ensure updating declarations in code-behind.

Losing events is a known problem. For this reason I prefer declaring events
explicitly in the <asp:...> tags.
 

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
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top