【发布时间】:2012-01-25 07:54:14
【问题描述】:
我想要的是: 我有一个 .aspx 页面。 当我点击一个按钮时,我想要一个 modalpopup window.open("Popup.aspx, '', '');");
打开
当用户按下提交按钮@popup.aspx 我想要一些其他代码来执行父表单的@server 端。
例如:
protected void btntext_Click(object sender, EventArgs e)
{
StringBuilder sb = new StringBuilder();
sb.Append("<script>");
sb.Append("window.open("popup.aspx", "List","scrollbars=no,resizable=no,width=400,height=280"););
sb.Append("</script");
Page.RegisterStartupScript("test", sb.ToString());
** I want that The popup should open here before executing the SaveValue() function
And I can return some value from that popup.aspx and check here and according to that/execute the code.**
SaveValue();
}
【问题讨论】:
-
我无法弄清楚。它可以通过 javascript popup 轻松完成,但是如何使用 window.open() 呢?