M
Manish
First of all let me state that I am new to .Net and C#.
I have 2 Web User Contols:
PageHeaderCAN.ascx
PageHeaderUSA.ascx
I have 1 aspx page
parts.aspx
Using the Solutions Explorer I drag and Dropped both CAN and USA user
controls to my page. Depending on the value of Session["Cntry"] I
want to display one or the other. In my page_load I tried the
following.
if(Session["Cntry"] == "C") {
PageHeaderCan1.Visible = true;
PageHeaderUsa1.Visible = false;
}
else {
PageHeaderUsa1.Visible = true;
PageHeaderCan1.Visible = false;
}
This doesn't work.
Can anyone help me with this problem?
Thanks,
Manish
I have 2 Web User Contols:
PageHeaderCAN.ascx
PageHeaderUSA.ascx
I have 1 aspx page
parts.aspx
Using the Solutions Explorer I drag and Dropped both CAN and USA user
controls to my page. Depending on the value of Session["Cntry"] I
want to display one or the other. In my page_load I tried the
following.
if(Session["Cntry"] == "C") {
PageHeaderCan1.Visible = true;
PageHeaderUsa1.Visible = false;
}
else {
PageHeaderUsa1.Visible = true;
PageHeaderCan1.Visible = false;
}
This doesn't work.
Can anyone help me with this problem?
Thanks,
Manish