Author: lmayne | Posted on: 3/16/2010 6:53:22 AM | Views : 270

I have the usual problem of dynamically created usercontrols not hitting the event handler for a linkbutton inside the control, but I've checked the usual problems and I can't work out what's wrong. I'm calling a function to create the controls at the bottom of my page.load (although I did try page.init as well just in case) outside of my page.ispostback check, and I'm setting the controls id's to a fixed name which is consistent across postbacks. Any ideas what's wrong?
 
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If Page.IsPostback = False Then ' Setup code End If Me.BindChecklistGroups(objProject) End Sub Private Sub BindChecklistGroups(ByVal pCdmProject As CdmProject) For Each objChecklistGroup As CdmChecklistGroup In pCdmProject.ChecklistGroups() ...

Go to the complete details ...