创建一个提示对话框 asp.net GridView 删除时弹出确认对话框(包括内容提示)
asp.net GridView 删除时弹出确认对话框(包括内容提示)
效果图 代码复制代码 代码如下:
<table align= center bgcolor= #c de border= cellpadding= cellspacing= width= % > <tr> <th colspan= > GridView演示</th> </tr> <tr> <td colspan= style= width: %; > <asp:GridView ID= GridView runat= server Width= % AutoGenerateColumns= False AllowPaging= True OnPageIndexChanging= GridView_PageIndexChanging PageSize= OnRowDeleting= GridView_RowDeleting OnRowDataBound= GridView_RowDataBound > <Columns> <asp:BoundField DataField= UserID HeaderText= UserID ReadOnly= True /> <asp:BoundField DataField= C_Name HeaderText= 中文名字 ReadOnly= True /> <asp:BoundField DataField= E_Name HeaderText= 英文名字 ReadOnly= True /> <asp:BoundField DataField= QQ HeaderText= QQ帐号 /> <asp:CommandField HeaderText= 删除 ShowDeleteButton= True /> </Columns> <RowStyle HorizontalAlign= Center /> <PagerStyle HorizontalAlign= Right /> </asp:GridView> </td> </tr> </table>

C#代码
复制代码 代码如下:
lishixinzhi/Article/program/ASP/201405/30782