Please help me to solve problem.
Actually i want to use different user control on change of year so depending upon year selected the user control have to change. please tell me how to change source file from code page.
Thank you in advance!!!!!
How to change user tag source file from code page
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Suthish NairRank #92 · 22.8K pointsPosted Feb 14, 2012, 10:09 PM EST
Just an approach, you need to work on it..
Default.aspx having...
1.ascx having...
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="1.ascx.cs" Inherits="WebApplication1._1" %>
protected void Page_Load(object sender, EventArgs e)
{
lbl1.Text = "User Control : 1 " + Convert.ToString(DateTime.Now);
}
2.ascx having...
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="2.ascx.cs" Inherits="WebApplication1._2" %>
protected void Page_Load(object sender, EventArgs e)
{
lbl2.Text = "User Control : 2 " + Convert.ToString(DateTime.Now);
}