网页后台代码弹出(MessageBox)提示

提示正确:

 MessageBox MBx = new MessageBox();
                    MBx.M_Type = 2;
                    MBx.M_Title = "操作成功";
                    MBx.M_IconType = Icon_Type.OK;
                    MBx.M_Body = "添加用户成功,新增用户的默认密码是:" + tempdeaultpwd + ",请及时修改。";
                    MBx.M_ButtonList.Add(new sys_NavigationUrl("继续添加", "Manager/User/AddUser.aspx", "", UrlType.Href, false));
                    MBx.M_ButtonList.Add(new sys_NavigationUrl("返回", "Manager/User/AdminUserManage.aspx", "", UrlType.Href, false));
                    EventMessage.MessageBox(MBx);

 

提示错误:

MessageBox MBx = new MessageBox();
                    MBx.M_Type = 2;
                    MBx.M_Title = "操作错误";
                    MBx.M_IconType = Icon_Type.Error;
                    MBx.M_Body = "添加错误,请检查网络连接";
                    MBx.M_ButtonList.Add(new sys_NavigationUrl("返回", "history.back(-1)", "", UrlType.JavaScript, false));
                    EventMessage.MessageBox(MBx);

你可能感兴趣的:(message)