asp.net2005 Ajax confirm 国籍化问题
有资源文件ResourceGlobal.resx name=UserWelcome value=你好吗?
我想是以confirm 的方式弹出并显示资源文件里面UserWelcome 点击是后 继续执行否 就不执行了
我是这么做的:
string UserWelcome =GetGlobalResourceObject("ResourceGlobal", "UserWelcome ").ToString();
ScriptManager.RegisterStartupScript(this.UpdatePanel1, this.GetType(), "UpdatePanel1", " window.confirm('"+'UserWelcome+")", true);
这么做虽然弹出结果但是 点击是和否 代码会继续执行 有人告诉我" window.confirm('"+'UserWelcome+") 前面加return 变成" return window.confirm('"+'UserWelcome+")",
这样 弹都不弹了页面 脚本出错了
于是我又想了另个办法 干脆在前台做confirm 方法 但是 我有不知道怎么用脚本取到ResourceGlobal.resx name=UserWelcome
请告诉指教!!!
最好 后台的和前台的脚本 方法都给出!!!!!!!!!!!!!