我是靠谱客的博主 超级汽车,最近开发中收集的这篇文章主要介绍file:///C:\Users\j\Desktop\WebSite\User.aspx结合Dao.cs,觉得挺不错的,现在分享给大家,希望可以做个参考。
概述
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" %>
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
GridView1.Load += new EventHandler(GridView1_Load);
GridView1.PreRender += new EventHandler(GridView1_PreRender);
GridView1.PageIndexChanging += new GridViewPageEventHandler(GridView1_PageIndexChanging);
GridView1.RowEditing += new GridViewEditEventHandler(GridView1_RowEditing);
GridView1.RowCancelingEdit += new GridViewCancelEditEventHandler(GridView1_RowCancelingEdit);
GridView1.RowUpdating += new GridViewUpdateEventHandler(GridView1_RowUpdating);
GridView1.RowDeleting += new GridViewDeleteEventHandler(GridView1_RowDeleting);
}
protected void GridView1_Load(object sender, EventArgs e)
{
Dao.GridViewUser(GridView1);
}
protected void GridView1_PreRender(object sender, EventArgs e)
{
Dao.BangDingUser(GridView1);
}
protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
GridView1.PageIndex = e.NewPageIndex;
}
protected void GridView1_RowEditing(object sender, GridViewEditEventArgs e)
{
GridView1.EditIndex = e.NewEditIndex;
}
protected void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e)
{
Dao.UpdateUser(GridView1, e.RowIndex);
}
protected void GridView1_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
{
GridView1.EditIndex = -1;
}
protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
Dao.DeleteUser(GridView1, e.RowIndex);
}
</script>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<asp:GridView ID="GridView1" runat="server">
</asp:GridView>
</asp:Content>
最后
以上就是超级汽车为你收集整理的file:///C:\Users\j\Desktop\WebSite\User.aspx结合Dao.cs的全部内容,希望文章能够帮你解决file:///C:\Users\j\Desktop\WebSite\User.aspx结合Dao.cs所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复