C
Christian Ista
Hello,
In an aspx page (default.aspx in the HTML), I use an uercontrol
<%@ Register TagPrefix="CTest" TagName="Test" Src="~\controls\Login.ascx" %>
......
<CTest:Testid="MyTest" runat="server"></CTest:Test>
......
no problem when I start this application, I see it.
Now I'd like hide this control when I click on a button, how can I have
access, in the code-behind, to hide this UserControl ?
That's not work when I do this :
private void Button1_Click(object sender, System.EventArgs e)
{
MyTest.Visible = false;
}
Thanks,
Christian,
In an aspx page (default.aspx in the HTML), I use an uercontrol
<%@ Register TagPrefix="CTest" TagName="Test" Src="~\controls\Login.ascx" %>
......
<CTest:Testid="MyTest" runat="server"></CTest:Test>
......
no problem when I start this application, I see it.
Now I'd like hide this control when I click on a button, how can I have
access, in the code-behind, to hide this UserControl ?
That's not work when I do this :
private void Button1_Click(object sender, System.EventArgs e)
{
MyTest.Visible = false;
}
Thanks,
Christian,