How to change image in Multiview control?

Oct 3 2011 1:47 AM

Hi,

  I am developing an application using multiview control. Everything is working perfectly. But i want to fix some images in multiview page. In that i have 4 views. If i am in view1 first image shold be highlighted.For that i am using code like this.

if (!IsPostBack)
{
img1.Visible = false;
Img11.Visible = true;
img2.Visible = true;
Img22.Visible = false;
Img3.Visible = true;
Img33.Visible = false;
Img4.Visible = true;
Img44.Visible = false;
}
When i went to view2 i have to change to another image. For that i am using following code in a button click. But it is always Enabling first image only.
img1.Visible = true;
Img11.Visible = false;
Img22.Style.Add("Hidden", "false");
img2.Visible = false;
Img22.Visible = true;
Img3.Visible = true;
Img33.Visible = false;
Img4.Visible = true;
Img44.Visible = false;
How to solve my problem. Anybody pls help me........
Regards,
Rajesh

Answers (2)