0
如何获取客户端页面中OK按钮消息框的响应。 ClientScript.RegisterStartupScript(this.GetType(),“My alert”,“alert('”Your time has been finished“');”,true);如何获取客户端页面中OK按钮消息框的响应
此代码以简单的方式工作意味着没有得到任何回应。
如何获取客户端页面中OK按钮消息框的响应。 ClientScript.RegisterStartupScript(this.GetType(),“My alert”,“alert('”Your time has been finished“');”,true);如何获取客户端页面中OK按钮消息框的响应
此代码以简单的方式工作意味着没有得到任何回应。
您可以直接在下一行开始进一步的活动。点击确定按钮它会返回到你的下一行。
//你的代码放在这里...... //例如: -
ClientScript.RegisterStartupScript(this.GetType(), "My alert", "alert('" Your time has been finished "');", true);
System.Text.StringBuilder sbs = new System.Text.StringBuilder();
sbs.Append("<script language='javascript'>");
sbs.Append("window.location = 'http://www.google.com/'");//or whatever you want:-
sbs.Append("</script>");
Type tr = this.GetType();
ClientScript.RegisterClientScriptBlock(tr, "PopupScript2", sbs.ToString());
但我想按下确定按钮后重定向的页面是否有可能在JavaScript sbs.Append(“的Response.Redirect ( “Home.aspx”)“); 其不工作.. 现在该怎么办.. – user949914
现在看..我已经编辑了答案 – Pranav
ClientScript.RegisterStartupScript(this.GetType(),“我的警报”,“警报('”您的时间已完成“ ');“,true); System.Text.StringBuilder sds = new System.Text.StringBuilder(); sds.Append(“