A页面是在点击B页面时弹出来的 具体弹出方法是这样 写的 UpTdoor.aspx为A页面 B页面是当前页面点击弹出A页面后 B页面不关闭 在关闭A页面是实现B页面全部刷新 最好是局部刷新 就是GRIDVIEW刷新最好了 不行就全部刷。
protected void DataBound(object sender, GridViewRowEventArgs e)
{
e.Row.Attributes["style"] = "Cursor:hand";
e.Row.Attributes.Add("onclick", "window.open('UpTdoor.aspx?ID=" + e.Row.Cells[1].Text.Trim() + "&ID1=" + e.Row.Cells[2].Text.Trim() + "','','width=400,height=500')");
}
protected void DataBound(object sender, GridViewRowEventArgs e)
{
e.Row.Attributes["style"] = "Cursor:hand";
e.Row.Attributes.Add("onclick", "window.open('UpTdoor.aspx?ID=" + e.Row.Cells[1].Text.Trim() + "&ID1=" + e.Row.Cells[2].Text.Trim() + "','','width=400,height=500')");
}
解决方案 »
- 请教一个奇怪的问题,% 通配符在查询的时候只能替代一个字符!点解!
- 谁来帮我解释一下这个东东、、莫非人品问题了?、、
- 这张图的容器是哪个????
- C#下在vs2010中的导出数据到Excel中
- 求助!WinForms界面中按照用户名删除数据,验证数据库中是否存在该记录,怎么写验证语句?
- 水晶报表动态传递数据的问题
- 这种情况下如何用委托实现
- "1+1/2+1/3+...+1/300"求解......
- 加载完题目以后事先倒计时
- [求助帖]C#图像处理Bitmap会自动压缩图片吗?
- C# 结构
- 为什么会有这个错误啊!!System.Windows.Forms.TextBox并不包含“AppendText”的定义
B页的刷新函数
<script type="text/javascript" >
function myrefresh() {
window.location.reload();
}
</script>A页调用他 <script type="text/javascript">
function reload() {
parent.myrefresh();
}
</script>
哈哈3连了
。cs代码里这么调用 ClientScript.RegisterStartupScript(GetType(), "jsGo", "<script>reload();</script>");