码迷,mamicode.com
首页 > Web开发 > 详细

aspxgridview CustomButtonCallback 不支持弹出消息提示解决方法

时间:2016-07-25 18:08:07      阅读:315      评论:0      收藏:0      [点我收藏+]

标签:


protected void ASPxGridView1_CustomButtonCallback(object sender, ASPxGridViewCustomButtonCallbackEventArgs e)
{
ASPxGridView view = sender as ASPxGridView;
if (e.ButtonID == "btnAudit")
{
int id = 0;
int.TryParse(view.GetRowValues(e.VisibleIndex, "id").ToString(), out id);
if (true)
{
view.JSProperties["cpErrorMsg"] = "审核成功!";
view.DataBind();
}
else
{
view.JSProperties["cpErrorMsg"] = "此单据已经审核!";
}
}
}


function EndCallBack(s, e) {
if (s.cpErrorMsg!="") {
alert(s.cpErrorMsg);
}
}

aspxgridview CustomButtonCallback 不支持弹出消息提示解决方法

标签:

原文地址:http://www.cnblogs.com/guoliangchun/p/5704356.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!