2015-01-18 18:10:44|?次阅读|上传:wustguangh【已有?条评论】发表评论
关键词:ASP.NET, Web, C#|来源:唯设编程网
8.后台页面跳转
cs.RegisterClientScriptBlock(cstype, csname2, "<script>if(confirm('保存成功!是否继续添加?')){location.href='ProductonAdd.aspx'}else{location.href='ProductonList.aspx'}</script>", true);
9. 后台弹出确定框
cs.RegisterClientScriptBlock(cstype, csname2, "<script>alert('请正确输入!');</script>", true);
10. ASP.NET后台页面跳转
cs.RegisterClientScriptBlock(cstype, csname2, "<script>alert('数据添加成功!');{location.href='ProductonList.aspx'}</script>", true);
或
cs.RegisterClientScriptBlock(cstype, csname2, "<script>window.location.href='AdminMain.aspx';</script>", true);
11. 后台弹出文本框
cs.RegisterClientScriptBlock(cstype, csname2, "window.open('rptView.aspx','打印预览','toolbar=no,location=no,scrollbars=yes,top=200px,left=200px,width=904px,height=650px')", true);