I’m building a website where i need to call WebUserControls (.ascx) based on the user request, how can I accomplish this? Is this even possible?
Example:
protected void userclick_click(object sender, EventArgs e)
{
if(textbox1.Text == "2")
{
call WebUserControl1.ascx
}
else
{
/*do nothing*/
}
}
I’m using C# for this.
Thank you in advance.
1 Answer