UpdatePanel中弹出窗口
要实现的逻辑:
1 单击按钮,运行以下代码(该按钮在UpdatePanel中)
string studentId = Request.QueryString["StudentId"];
UploadAll(studentId);
2 然后弹出消息框,显示消息内容和确定按钮
3 单击确定按钮
4 转向另一个页面。
-----------------------------------------------------
protected void btnUploadAndFinish_Click(object sender, EventArgs e)
{
string studentId = Request.QueryString["StudentId"];
UploadAll(studentId);
//Poput window
// System.Web.UI.ScriptManager.RegisterStartupScript(this, this.GetType(), "click", "alert('Message!')", true);
//this.Response.Write("<script language='JavaScript'>alert('Message!');window.location='UploadDocuments.aspx';</script>");
Response.Redirect("~/DocumentList.aspx?StudentId=" + studentId);
}