{
if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
{
string nr = ((DataRowView)e.Item.DataItem).Row["GZZDS"].ToString();
string id = ((DataRowView)e.Item.DataItem).Row["RZID"].ToString();
string rid = ((DataRowView)e.Item.DataItem).Row["RWXH"].ToString();
string link = "";
if (nr == "")
{
link = "<a href='#' onclick=\"selectGuide2('BookDoc.aspx?type=2&Id=" id "&rid=" rid "&Rnd='Math.random());location=location;\">选择指导书</a>";
}
else
{
string t = (ViewState["State"].ToString() == "Query" || ((DataRowView)e.Item.DataItem).Row["GZZT"].ToString() == "工作结束") ? "false" : "true";
string path=((DataRowView)e.Item.DataItem).Row["GZZDSPath"].ToString();

link = "<a href='#' onclick=\"EditWord('" path "'," t ")\">" nr "</a>";
}
((Literal)e.Item.FindControl("Literal1")).Text = link;
}
}
window.location.Reload()和window.location.hrefwindow.location.Reload()应该是刷新.(如果有数据提交的话,会提示是否提交的(是和否选项))
window.location.href=window.location.href;
是定向url提交数据
是大的区别还是是否提交数据了
function refresh()
{
//刷新页面函数
//window.focus();刷新窗口
//document.execCommand("Refresh");刷新窗口
//self.location.reload();刷新当前窗口
parent.location.reload();刷新父窗口
//aaa.location.reload();弹出窗口刷新父窗口
}
使用window.location.replace() or window.location.href(), 来重新加载此页面不出现提示框
本文来自电脑杂谈,转载请注明本文网址:
https://www.pc-fly.com/a/ruanjian/article-43895-2.html
处理没有问题
RIO本人购买价格12元
#杨洋icon##杨洋2015金投赏#杨洋金投赏