我爱Aspx >> Asp.Net >> 一個Ajax.NET的查詢實例this.DataGrid1.ItemCreated += new System.Web.UI.WebControls.DataGridItemEventHandler(this.getPageIndexStyle);
this.Load += new System.EventHandler(this.Page_Load);
}
#endregion
private void getPageIndexStyle(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e)
{
if(e.Item.ItemType == ListItemType.Pager)
{
e.Item.Cells[0].Text="Total Row:"+this.DataGrid1.Items.Count.ToString();
}
}
[AjaxPro.AjaxMethod]
public string AjaxData(string sSql, bool clientEvent)
{
if (clientEvent)
{
DataGrid1.ItemDataBound+=new DataGridItemEventHandler(DataGrid1_ItemDataBound);
}
// DataGrid1.AllowPaging=true;
// DataGrid1.PagerStyle.Position=PagerPosition.Top;
// DataGrid1.PagerStyle.Mode=PagerMode.NumericPages;
// DataGrid1.ItemCreated+=new DataGridItemEventHandler(getPageIndexStyle);
Ҷƪл˵?
ASP.NET2.0瞎记-加密链接字符串[08-01]
从asp.net页面发送电子邮件[08-01]
在.NET 2.0 中发送Email[08-01]
asp.net WebForm页面间传值方法[08-01]
漫谈Ajax在.Net中的使用[08-01]
介绍几个ASP.NET中容易忽略但却很..[08-01]
初谈ADO.NET中利用DataAdapter进..[08-01]
ASP与ASP.NET互通COOKIES的一点经..[08-01]
第一次用.net2.0 LOGIN登陆控件的..[08-01]
解决 ASP.NET 中目录访问权限的问..[08-01]
ORACLE8I转换数据到SQL SERVER[08-01]
C#多线程-不同线程之间通过事件委..[08-01]
Windows 2003 Server 中DOTNET程..[08-01]
ASP.NET2.0瞎记-加密链接字符串[08-01]
Photoshop打造一幅不错的电路板效..[08-01]
Photoshop把人物照片打造的更具有..[08-01]
Agnitum Outpost Firewall Pro身..[08-01]
Flash绘制06年德国世界杯标志[08-01]
用Dreamweaver进行数据库操作[08-01]
Dreamweaver制作网页实用七招[08-01]