location.href="attribute.aspx?rand=<%=DateTime.Now.Ticks%>"地址栏怎么还是attribute.aspx,网页根本不能刷新啊!
页面中调用javascript函数
function newAttribute()
{
var ret=window.showModalDialog("newattribute.aspx","" ,"dialogHeight:420px;dialogWidth:680px"); location.href="attribute.aspx?rand=<%=DateTime.Now.Ticks%>";
}
子窗口关闭后!
地址栏怎么还是attribute.aspx,网页根本好像刷新了一下啊!
不过内容没有变!
问题点数:20、回复次数:3Top
1 楼killerwc(刀耐特混混)回复于 2003-12-02 10:53:50 得分 10
没问题,在attribute.aspx加入Response.Write(Request["rand"].ToString());
显示正常,说明值已经传到Top
2 楼dychen(大圣)回复于 2003-12-02 11:01:55 得分 0
我测了,没有传到值
if(Request.QueryString["rand"]!=null)
{
Response.Write("rand:"+Request.QueryString["rand"].ToString());
}
怎么办!?Top
3 楼oceanh(狂心难歇)回复于 2003-12-02 11:07:54 得分 10
在webform内建立一public string rand
{
get{return DateTime.Now.Ticks;}
}
location.href="attribute.aspx?rand=<%=rand%>";
试试呢Top




