TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Dilip Solanki
NA
72
15k
dropdown list css not working when it is disabled, why?
Mar 12 2013 12:43 PM
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;
}
}
Reply
Answers (
1
)
what does "|=" mean in c#
User control with textbox, picbox in frame