Hello Friendz...
I have a problem...
When i m going to disable dropdown list on checkbox then dropdownlist related css not working, but i want that dropdownlist related css effect should be displayed and dropdownlist related selection related work should be locked only.
PROBLEM RELATED CODE:
<asp:CheckBox ID="chkbox_border_style" runat="server" Text="Same for all" AutoPostBack="true" TextAlign="Right" class="form_property_heading" oncheckedchanged="chkbox_border_style_CheckedChanged" />
<asp:DropDownList ID="drpdwn_border_style_top" class="section_id_drpdwn" width="70%" runat="server">
<asp:ListItem>Select Your Desired Top Border Style</asp:ListItem>
<asp:ListItem>dashed</asp:ListItem>
<asp:ListItem>dotted</asp:ListItem>
<asp:ListItem>double</asp:ListItem>
<asp:ListItem>groove</asp:ListItem>
<asp:ListItem>hidden</asp:ListItem>
<asp:ListItem>inset</asp:ListItem>
<asp:ListItem>none</asp:ListItem>
<asp:ListItem>outset</asp:ListItem>
<asp:ListItem>ridge</asp:ListItem>
<asp:ListItem>solid</asp:ListItem>
<asp:ListItem>inherit</asp:ListItem>
</asp:DropDownList>
protected void chkbox_border_style_CheckedChanged(object sender, EventArgs e)
{
if (chkbox_border_style.Checked == true)
{
drpdwn_border_style_top.Enabled = false;
}
if (chkbox_border_style.Checked == false)
{
drpdwn_border_style_top.Enabled = true;
}
}