时代科技 发表于 2014-3-31 10:13:27

ASPxGridView 控件做删除操作时 ,如果弹出提示框??

ASPxGridView 控件做删除操作时,,我要先跟据所选择的行的ID去判断数据库,此记录是否可以删除,再做出提示,可以不知道怎么弹出提示框!!请高手求解!!!
我的部分代码:
aspx code:
            <dx:GridViewCommandColumn Caption="操作" VisibleIndex="0" >
                <DeleteButton Visible="True" Text="删除">
                </DeleteButton>
            </dx:GridViewCommandColumn>
aspx.cs code:
    protected void GV_LXS_RowDeleting(object sender, DevExpress.Web.Data.ASPxDataDeletingEventArgs e)
    {
         if (iCount > 0)      ///如果iCount大于0时,弹出提示框,
      {
             //ClientScript.RegisterClientScriptBlock(typeof(Page), new Guid().ToString(), "<script>alert('对不起!此导游资料已有售票记录,不能删除!!')</script>", true);   //这个方行行不通
             e.Cancel = false;
            return;
      }
}

页: [1]
查看完整版本: ASPxGridView 控件做删除操作时 ,如果弹出提示框??