F
Frank Schumacher
Hi NG,
I have 2 problems working with an user control (ascx) and couldn't find
a solution yet.
I created a simple ascx with some ImageButtons and drag it on a simple
Webform, this code was inserted:
<%@ Register TagPrefix="uc1" TagName="chunk_container"
Src="chunk_container/chunk_container.ascx" %>
and in the body-tag:
<uc1:chunk_container id="Chunk_container1"
runat="server"></uc1:chunk_container>
1.) the Page_Load function of the ascx isn't execuded. It seems that the
ascx doesn't receive the event
2.) as shown above, an instance of my UserControl is created within the
body-tag, but I do not have any reference in my code behind. I'd expect
something like
protected Namespace.chunk_container Chunk_container1;
but there ain't such declaration. So I cannot access the functions, that
are public in my UserControl (and essential for the use of it).
I'm afraid, that I am completely out of line and hope, someone here can
give me a clue, how to solve this problems.
Thanks in advance,
Frank
PS: I am using VS.NET 2003, C#, W2003
I have 2 problems working with an user control (ascx) and couldn't find
a solution yet.
I created a simple ascx with some ImageButtons and drag it on a simple
Webform, this code was inserted:
<%@ Register TagPrefix="uc1" TagName="chunk_container"
Src="chunk_container/chunk_container.ascx" %>
and in the body-tag:
<uc1:chunk_container id="Chunk_container1"
runat="server"></uc1:chunk_container>
1.) the Page_Load function of the ascx isn't execuded. It seems that the
ascx doesn't receive the event
2.) as shown above, an instance of my UserControl is created within the
body-tag, but I do not have any reference in my code behind. I'd expect
something like
protected Namespace.chunk_container Chunk_container1;
but there ain't such declaration. So I cannot access the functions, that
are public in my UserControl (and essential for the use of it).
I'm afraid, that I am completely out of line and hope, someone here can
give me a clue, how to solve this problems.
Thanks in advance,
Frank
PS: I am using VS.NET 2003, C#, W2003