关于网友提出的“弹出对话框 net中 JS弹对话框”问题疑问,本网通过在网上对“弹出对话框 net中 JS弹对话框”有关的相关答案进行了整理,供用户进行参考,详细问题解答如下:
问题:弹出对话框 net中 JS弹对话框
描述: 给 按钮赋上 if session ("xxx")="" then
弹出对话框 “请注册会员”
else
response.redirct("xxx.aspx")
给串JS 代码
解决方案1: Response.Write("
解决方案2:if session ("xxx")="" then
string js = "";
ClientScript.RegisterStartupScript(this.GetType(), string.Empty, js);
else
response.redirct("xxx.aspx")
以上介绍了“弹出对话框 net中 JS弹对话框”的问题解答,希望对有需要的网友有所帮助。
本文网址链接:http://www.codes51.com/itwd/3251878.html