Skip to content

How to change user tag source file from code page

vinit c

Asked Feb 14, 2012, 8:55 PM EST1 answer
Share
LinkedInX
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!!!!!

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Suthish Nair
    0

     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);
     }

    0