
- 积分
- 0
- 在线时间
- 2 小时
- 主题
- 2
- 注册时间
- 2014-3-31
- 帖子
- 7
- 最后登录
- 2015-4-16

- 帖子
- 7
- 软币
- 93
- 在线时间
- 2 小时
- 注册时间
- 2014-3-31
|
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;
}
}
|
|