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!!!!!
Loading
Suthish NairPosted Feb 15, 2012, 3:09 AM
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);
}