M
~Maheshkumar.R
Hello groups,
i need small code snippet for implementaion of div tag. Let say, if i click
a button, i have to hide a checkbox list. I have placed that control inside
the Div tag, but not responding.
Mahes.
----------------------in codebehind --------------
Button1.Attributes.Add("onclick", "mycall()")
------------------------in aspx. page- -------------
<script language="javascript">
function mycall()
{
alert("responding");
var fr=document.Form1;
fr.green.style.display="none";
alert("yes disabled");
}
</script>
------------
<!--
<DIV id="green" style="DISPLAY: block">
<asp:checkboxlist id="CheckBoxList2" runat="server" Width="173px"
Height="41px" BackColor="Lime">
<asp:ListItem Value="a">a</asp:ListItem>
<asp:ListItem Value="b">b</asp:ListItem>
</asp:checkboxlist>
</DIV>
<asp:button id="Button1" runat="server" Text="Button" Width="121px"
style="Z-INDEX: 101; LEFT: 147px; POSITION: absolute; TOP: 228px">
</asp:button>
-->
i need small code snippet for implementaion of div tag. Let say, if i click
a button, i have to hide a checkbox list. I have placed that control inside
the Div tag, but not responding.
Mahes.
----------------------in codebehind --------------
Button1.Attributes.Add("onclick", "mycall()")
------------------------in aspx. page- -------------
<script language="javascript">
function mycall()
{
alert("responding");
var fr=document.Form1;
fr.green.style.display="none";
alert("yes disabled");
}
</script>
------------
<!--
<DIV id="green" style="DISPLAY: block">
<asp:checkboxlist id="CheckBoxList2" runat="server" Width="173px"
Height="41px" BackColor="Lime">
<asp:ListItem Value="a">a</asp:ListItem>
<asp:ListItem Value="b">b</asp:ListItem>
</asp:checkboxlist>
</DIV>
<asp:button id="Button1" runat="server" Text="Button" Width="121px"
style="Z-INDEX: 101; LEFT: 147px; POSITION: absolute; TOP: 228px">
</asp:button>
-->