Problem solve Get help with specific problems with your technologies, process and projects.

Re-linking ASP.NET controls

When moving ASP.NET controls around a form, controls can become disconnected from the code behind. Here's how you fix it.

Please let other users know how useful this tip is by rating it below. Do you have a tip or code of your own you'd like to share? Submit it here.


When moving ASP.NET controls around a form, controls can become disconnected from the code behind. To fix this, go to the design view of the aspx page and click on each control -- the Handles will then be restored.

Example 1
Private Sub cmdCancel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)

Example 2
Private Sub cmdCancel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdCancel.Click

Dig Deeper on Win Development Resources

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchCloudComputing

SearchSoftwareQuality

TheServerSide.com

Close