Last post Apr 24, 2006 11:58 PM by chezhian_in05
Participant
1473 Points
625 Posts
Apr 24, 2006 11:58 PM|chezhian_in05|LINK
this is a sample code which can be used to make the background color of the page depending upon the dropdown values
<body bgcolor='<%= DropDownList1.SelectedValue() %>'> <form id="form1" runat="server"> <div> <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True"> <asp:ListItem>Black</asp:ListItem> <asp:ListItem>Blue</asp:ListItem> <asp:ListItem>Red</asp:ListItem> <asp:ListItem>Green</asp:ListItem> </asp:DropDownList></div> </form> </body>
Participant
1473 Points
625 Posts
changing the background color depeing upon the value from dropdown list
Apr 24, 2006 11:58 PM|chezhian_in05|LINK
this is a sample code which can be used to make the background color of the page depending upon the dropdown values
<body bgcolor='<%= DropDownList1.SelectedValue() %>'>
<form id="form1" runat="server">
<div>
<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True">
<asp:ListItem>Black</asp:ListItem>
<asp:ListItem>Blue</asp:ListItem>
<asp:ListItem>Red</asp:ListItem>
<asp:ListItem>Green</asp:ListItem>
</asp:DropDownList></div>
</form>
</body>
R.Chezhian.,
=============================================
Please Mark the helpful post(s) as Answered