首页 > 其他 > 详细

弹出提示信息

时间:2015-11-20 15:19:59      阅读:281      评论:0      收藏:0      [点我收藏+]

方案一:

if (string.IsNullOrEmpty(hlApplyName.Text)) { Response.Write("<script>parent.funTips(‘请输入申请人!‘)</script>"); return; }

function funTips(strResult) {
    $.messager.alert("消息框", strResult);
    if (strResult == "该批次已被使用,不可编辑!") {
        $("#mm").window("close");
    }
}

 

方案二:

Response.Write("<script>parent.funSave(‘#lstData‘,‘数据操作成功!‘)</script>");

function funSave(ele, strResult) {
    $("#mm").window("close");
    $(ele).datagrid("load");
    $.messager.alert("消息框", strResult);
}

 

方案三:

 Page.ClientScript.RegisterStartupScript(Page.GetType(), "", "<script>alert(‘用户名或密码错误!‘)</script>");

 

弹出提示信息

原文:http://www.cnblogs.com/sll-fuling/p/4980840.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!