C
cavassinif
Hi,
I have my user control called: WebUserControl1.ascx
I have my web page called: WebForm1.aspx
I drag WebUserControl1.ascx to WebForm1.aspx.
The following tags were added to my page:
<%@ Register TagPrefix="uc1" TagName="WebUserControl1"
Src="WebUserControl1.ascx" %>
<uc1:WebUserControl1 id="WebUserControl11"
runat="server"></uc1:WebUserControl1>
Now, I want to call a method on the control instance
"WebUserControl11", I use this code on my web page:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
------> WebUserControl11.RefreshControlData() <-----
End Sub
Error, WebUserControl11 is not declared, it doesn't exists on my page
scope.
What I'm missing here or what I don't understand...why I can't access
the control instance in my code part of page?
Best Regards
Fabio
I have my user control called: WebUserControl1.ascx
I have my web page called: WebForm1.aspx
I drag WebUserControl1.ascx to WebForm1.aspx.
The following tags were added to my page:
<%@ Register TagPrefix="uc1" TagName="WebUserControl1"
Src="WebUserControl1.ascx" %>
<uc1:WebUserControl1 id="WebUserControl11"
runat="server"></uc1:WebUserControl1>
Now, I want to call a method on the control instance
"WebUserControl11", I use this code on my web page:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
------> WebUserControl11.RefreshControlData() <-----
End Sub
Error, WebUserControl11 is not declared, it doesn't exists on my page
scope.
What I'm missing here or what I don't understand...why I can't access
the control instance in my code part of page?
Best Regards
Fabio