0

考虑我有一个带有添加按钮和网格的页面。Grid 包含一些数据。如果我单击添加按钮,新的弹出窗口将打开。弹出窗口包含用于将新值添加到网格的文本框和按钮。我的问题是,如何在弹出窗口中添加一些值后自动加载网格视图?

弹窗代码:

protected void btnAdd_Click(object sender, EventArgs e)
{
  ClientScript.RegisterStartupScript(this.GetType(), "newWindow", String.Format("<script>window.open('{0}','','width=550,height=300,left=500');</script>", "PopupADD.aspx"));
} 
4

1 回答 1

0

按着这些次序..

1.Design a window to add data to gridview inside a div.
2.Show the div as popup using Javascript.
3.Bind the gridview when you click some button(like ok) in that popup window.
于 2013-03-14T09:33:19.420 回答