用户管理
来源:互联网 发布:零起点学通c语言笔记 编辑:程序博客网 时间:2024/06/03 21:43
BackColor="White" BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px"
CellPadding="4" DataKeyNames="用户名" Height="87px" HorizontalAlign="Center"
OnRowDeleting="GridView1_RowDeleting">
<PagerSettings FirstPageText="" LastPageText="" Mode="NextPrevious"
NextPageText="下一页" PreviousPageText="上一页" PageButtonCount="6"/>
<Columns>
<asp:BoundField DataField="用户名" HeaderText="用户名" ReadOnly="true"/>
<asp:BoundField DataField="真实姓名" HeaderText="真实姓名" ReadOnly="true"/>
<asp:BoundField DataField="电话" HeaderText="电话" ReadOnly="true"/>
<asp:BoundField DataField="地址" HeaderText="地址" ReadOnly="true"/>
<asp:BoundField DataField="邮编" HeaderText="邮编" ReadOnly="true"/>
<asp:CommandField ShowCancelButton="false" ShowDeleteButton="true" />
</Columns>
<SelectedRowStyle BackColor="#FFCC66" Font-Bold="true" ForeColor="#663399"/>
<PagerStyle BackColor="#FFFFCC" ForeColor="#330099" HorizontalAlign="Center"/>
<HeaderStyle BackColor="#990000" Font-Bold="true" ForeColor="#FFFFCC" />
</asp:GridView>
public partial class delusers : System.Web.UI.Page
{
BaseClass ba = new BaseClass();
protected void Page_Load(object sender, EventArgs e)
{
bindgrig();
}
protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
String strsql = "delete from 用户表 where 用户名='" + GridView1.DataKeys[e.RowIndex].Value.ToString() + "'";
ba.execsql(strsql);
bindgrig();
}
void bindgrig()
{
string strsql = "select * from 用户表 where 管理员标志=0";
DataTable dt = ba.readtable(strsql);
GridView1.DataSource = dt;
GridView1.DataBind();
}
}
- 用户管理
- 用户管理
- 用户管理
- 用户管理
- 用户管理
- 用户管理
- 用户管理
- 用户管理
- 用户管理
- 用户管理
- 管理用户
- 用户管理
- 用户管理
- 用户管理
- 管理用户
- 用户管理
- 用户管理
- 用户管理
- libqrencode学习笔记(二): 用libqrencode静态库库生成二维码并保存为BMP图片
- SQLServer创建索引的5种方法
- 孤儿进程
- 1003.相连的1
- 在电脑上写好的移动端页面,如何在手机上快速查看
- 用户管理
- 基于DCNN的人脸特征点定位-CVPR 2013
- java中的数据类型
- 关于BufferedImage和Graphics的问题记录
- 输出链表中的倒数第k个结点
- C# LIST和STRING互相转换
- 排序算法理论与总结
- 中国人工智能AI专家齐聚共论创新与发展
- SQL必知必会