Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
All-Star
118619 Points
18779 Posts
Sep 07, 2011 01:51 AM|LINK
Hello,
The reason is that CreateChildrenControls won't be automatically called, And you should change your codes like:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim j = MyControl1.ContentTemplateOwner 'Call EnsureChildControls() Response.Write(Button1.Text) End Sub
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: Controls present inside ITemplate gives error when accessed in PageLoad event
Sep 07, 2011 01:51 AM|LINK
Hello,
The reason is that CreateChildrenControls won't be automatically called, And you should change your codes like: