Hi,
I have a default.aspx file and 2 user controls.
Code for user control 1
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="WebUserControl.ascx.cs" Inherits="WebUserControl" %>
<%@ Register Src="~/WebUserControl2.ascx" TagName="wc1" TagPrefix="asp2" %>
<asp2:wc1 ID="control1" runat="server" />
Code for user control 2
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="WebUserControl2.ascx.cs" Inherits="WebUserControl2" %>
Why can't I access user control 1 from my source code in user control 2?
protected void Page_Load(object sender, EventArgs e)
{
WebUserControl //Doesn't work
}