可以清空Request.QueryString["id"]里面的值吗? 可以清空Request.QueryString["id"]里面的值吗? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 function showwindow() { var str= window.showModalDialog('HTMLPage2.htm','window','dialogHeight: 550px; dialogWidth:1000px; center: Yes; help: No; resizable: Yes; status: No;'); window.location.href=window.location.href+"?id="+str; }这个id是上面这个函数传过来的,加入第一次传过来的值的URL是a.aspx?id=1第2次的URL成a.aspx?id=1?id=2?不知道为什么 不能直接情况,要跳转到新的url才行!!! BearRui(开心熊 | 来地球抢分) ( ) 信誉:110 ========================没明白你的意思 这句话是用来接收的,当你没有传来参数的时候1抱错,2为空所以说当重新url后里面的值 就为空了不要想得太复杂 hongcha99() ( ) 信誉:100 ======================可否告知我一个例子 J_fenix(武器种族传说) ( ) 信誉:100 =====================你们怎么说的我都不明白啊?具体怎么操作阿 我现在是根据传过来的ID号绑定GRIDVIEW的。 我舉個例子如下吧: if (Request.QueryString["customerID"]!=null && !string.IsNullOrEmpty(Request.QueryString["customerID"].ToString())) { Session["customerID"] = Request.QueryString["customerID"].ToString(); Response.Redirect(HttpContext.Current.Request.Url.ToString().Remove(HttpContext.Current.Request.Url.ToString().LastIndexOf('&'))); } if (Session["customerID"] != null && !string.IsNullOrEmpty(Session["customerID"].ToString())) { Master.SetWhere("CustomerID='" + Session["customerID"].ToString() + "'"); DataBind(); Session["customerID"] = null; } 关于ImgButton 路径的问题 水晶报表用得人多么? 请教高手!datagrid中的查找 求一个网页从运行到结束的所有事件按顺序来(谢谢大家) 就一个AJAX自动完成扩展的问题,搞了快1个月了,要疯了~救命!! javascript如何调用或执行后端的代码 急死我了,一个存储过程的问题 更新SQL Server 中的Text字段有问题, 今天看见WWW.INTEL.COM网站用的是ASP.NET,大受鼓舞啊!! asp.net 在ubuntu下移植的问题,求救啊。unrecognized targetFramwork NULL和""有什么区别 【100】菜鸟求助!输入框问题
{
var str= window.showModalDialog('HTMLPage2.htm','window','dialogHeight: 550px; dialogWidth:1000px; center: Yes; help: No; resizable: Yes; status: No;');
window.location.href=window.location.href+"?id="+str;
}
这个id是上面这个函数传过来的,加入第一次传过来的值的URL是a.aspx?id=1
第2次的URL成a.aspx?id=1?id=2?
不知道为什么
========================
没明白你的意思
======================
可否告知我一个例子
=====================
你们怎么说的我都不明白啊?具体怎么操作阿
if (Request.QueryString["customerID"]!=null && !string.IsNullOrEmpty(Request.QueryString["customerID"].ToString()))
{
Session["customerID"] = Request.QueryString["customerID"].ToString();
Response.Redirect(HttpContext.Current.Request.Url.ToString().Remove(HttpContext.Current.Request.Url.ToString().LastIndexOf('&')));
}
if (Session["customerID"] != null && !string.IsNullOrEmpty(Session["customerID"].ToString()))
{
Master.SetWhere("CustomerID='" + Session["customerID"].ToString() + "'");
DataBind();
Session["customerID"] = null;
}