关于主题的问题 http://topic.csdn.net/u/20081005/21/1f028733-d201-408a-b874-7012afe76c12.html?seed=1840769466求以上方法的c#实现代码,具体点 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <%@ Control Language="C#" %><script runat="server"> protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) { this.Response.Cookies["theme, per user per site"].Value = this.DropDownList1.SelectedValue; this.Page.ClientScript.RegisterStartupScript(this.GetType(),"reload","setTimeout('window.location.href=window.location.href',1);", true); }</script><asp:DropDownList ID="DropDownList1" runat="server" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged" AutoPostBack="True"> <asp:ListItem>MSN_Blue</asp:ListItem> <asp:ListItem>MSN_CherryBlossom</asp:ListItem> <asp:ListItem>MSN_Finance</asp:ListItem> <asp:ListItem>MSN_Morning</asp:ListItem> <asp:ListItem>MSN_Purple</asp:ListItem> <asp:ListItem>MSN_Red</asp:ListItem> <asp:ListItem>WinXP_Blue</asp:ListItem> <asp:ListItem>WinXP_Silver</asp:ListItem></asp:DropDownList>protected override void OnPreInit(EventArgs e) { base.OnPreInit(e); HttpCookie s = Request.Cookies["theme, per user per site"]; if (s != null && s.Value != null) this.Theme = s.Value; } 如何能禁止Web页面中的TextBox输入中文? 执行“Alter table“报出” Syntax error in field definition“错误 谁能告诉我!GridView1.DataSource = null; 问一个问题 DataGrid 绑定的是ArrayList ,晕了 一个关于dropdownlist的简单问题,却让我郁闷了几天,急,在线等 为什么部署ASP.net失败 我在此问大家一个很幼稚的问题! treeview问题 怎样使datagrid 的链结列根据条件的不同而指向不同的页面??? asp.net2.0中table控件的使用 关于时间循环的问题
<%@ Control Language="C#" %><script runat="server">
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
this.Response.Cookies["theme, per user per site"].Value = this.DropDownList1.SelectedValue;
this.Page.ClientScript.RegisterStartupScript(this.GetType(),"reload","setTimeout('window.location.href=window.location.href',1);", true);
}
</script><asp:DropDownList ID="DropDownList1" runat="server"
OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged" AutoPostBack="True">
<asp:ListItem>MSN_Blue</asp:ListItem>
<asp:ListItem>MSN_CherryBlossom</asp:ListItem>
<asp:ListItem>MSN_Finance</asp:ListItem>
<asp:ListItem>MSN_Morning</asp:ListItem>
<asp:ListItem>MSN_Purple</asp:ListItem>
<asp:ListItem>MSN_Red</asp:ListItem>
<asp:ListItem>WinXP_Blue</asp:ListItem>
<asp:ListItem>WinXP_Silver</asp:ListItem>
</asp:DropDownList>protected override void OnPreInit(EventArgs e)
{
base.OnPreInit(e);
HttpCookie s = Request.Cookies["theme, per user per site"];
if (s != null && s.Value != null)
this.Theme = s.Value;
}