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 NairRank #92 · 22.8K reputationPosted Jun 24, 2011, 2:11 AM EDT
or
div1.Style["display"] = "block" to visible
Also, if your are using width/height try reseting to 0px.
Om prakash Singh126 reputationPosted Jun 24, 2011, 1:00 AM EDT
Dorababu MekaRank #457 · 5.5K reputationPosted Jun 24, 2011, 1:01 AM EDT
Om prakash Singh126 reputationPosted Jun 24, 2011, 1:19 AM EDT
put the name of dives like div1,div2,div3..... and in a for loop assign style property of div.
Dorababu MekaRank #457 · 5.5K reputationPosted Jun 24, 2011, 1:32 AM EDT