各位大哥大姐 小弟刚学ASP.NET 好多东西还都不明白希望大家能给我点帮助 请问大家 怎样用 Dropdownlist 控件改变 网页背景颜色 不用脚本语言
解决方案 »
- swfupload 2.2 怎样实现批量上传图片,并将图片名保存到数据库之中
- Listview中绑定dropdownlist并能触发dropdownlist的选择事件!!
- 求一则正则表达式
- profile 如何 性能、安全方面
- 如何给Excel的字体worksheet.Cells.Font.Color赋值
- 关于 HttpUtility.UrlEncode 的一个问题?
- asp.net2.0中新建网站,以文件系统的方式,可以选择自己的路径,可创建后,并没有在iis中看见虚拟目录。这是为什么?
- 如何用代码的方法获得服务器的所有组和用户,windows集成认证如何细分权限?
- 关于linkbutton真是怪!
- mvc模型写入数据库,极菜的问题,但我不会
- http 500 错误!急~
- FreeTextBox问题
<form id="gaga" runat="server" method="get">
<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged" Width="133px">
<asp:ListItem Value="blue">蓝</asp:ListItem>
<asp:ListItem Value="red">红</asp:ListItem>
</asp:DropDownList>
</form>
</body>.cs
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
this.aaa.Attributes.Add("bgcolor", DropDownList1.SelectedItem.Value);
}