Assume my structure is as follows
in code i am showing as follows for both the check boxes
if (chk1.Checked) { div1.Visible = true; } else { div1.Visible = false; }
if (chk2.Checked) { div2.Visible = true; } else { div2.Visible = false; }
Can any one tell how to resolve this
Sample Style applied for Div is as follows
.style1 { width: 268px; height: 19px; position: absolute; top: 16px; left: 335px; float: left; z-index: 1; }

Suthish NairPosted Jun 24, 2011, 6:11 AM
or
div1.Style["display"] = "block" to visible
Also, if your are using width/height try reseting to 0px.
Dorababu MekaPosted Jun 24, 2011, 5:32 AM
Om prakash SinghPosted Jun 24, 2011, 5:19 AM
put the name of dives like div1,div2,div3..... and in a for loop assign style property of div.
Dorababu MekaPosted Jun 24, 2011, 5:01 AM
Om prakash SinghPosted Jun 24, 2011, 5:00 AM