ajax AspNetPager ˽â¾ö - .NET¼¼Êõ / ASP.NET
Ö»Çó½â¾ö·½°¸ »òÕß²¿·Ö´úÂëÒ²ÐÐ
scriptmanager µÄ²»Òª
js ajax jquery ajax ¶¼¿ÉÒÔ
½â¾öÕâ¸öÎÊÌâ 50-µ½Ò»°ÙÖ±½Ó¸øÄã ÆäÓ൱ɢ·Û
²»À´ÈýÁ¬»÷ ÊÇûÈ˶¥µÄ sf ²»Áô
ɶÒâ˼£¿
aspnetpagerÕâ¸ö²»ÊÇÓÐ×Ô´øµÄajaxʵÀýÂð£¿
ÊÖ¶¯ÊµÏÖÒ²¿ÉÒÔ£¬Í¨¹ýurl°É£¿
ÊÇ ÎÞË¢Ð Ч¹û ¶þÂ¥ÍÏÀ»úÐÖµÜ ÓÐʵÀý Çë·¢³öÀ´ÎÒ¿´¿´
<asp:ScriptManager ID="ScriptManager1" runat="server">
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<webdiyer:AspNetPager ID="AspNetPager1" runat="server" FirstPageText="µÚÒ»Ò³" LastPageText="ÉÏÒ»Ò³"
NextPageText="ÏÂÒ»Ò³" PageSize="5" OnPageChanged="AspNetPager1_PageChanged" AlwaysShow="True">
</webdiyer:AspNetPager>
</asp:UpdatePanel>
</asp:ScriptManager>
-------ºǫ́
PagedDataSource pds = new PagedDataSource();
this.Repeater1.DataSource = ds.Tables[0].DefaultView;
DataView dv = ds.Tables[0].DefaultView;
pds.DataSource = dv;
AspNetPager1.RecordCount = dv.Count;
pds.AllowPag
Ïà¹ØÎÊ´ð£º
°´Å¥·ÅÔÚUpdatePanel1£¬Ïëͨ¹ýµã»÷µ÷ÓÃDictionaryTvAdd.aspxµ¯³öÒ»¸ö×Ó´°Ìå
ÓÃÏÂÃæµÄÓï¾äÌáʾÎÒȱÉÙ¶ÔÏó
protected void Button1_Click(object sender, EventArgs e)
{
ScriptManager.R ......
ÎÒÏÖÔÚÓÃstruts2¿ò¼Ü,ÐèҪʹÓÃajaxʵÏÖ¾Ö²¿Ë¢Ð£¬µ«ÊÇ´ÓÈÝÆ÷Àï·µ»ØµÄÖµ²»ÖªµÀÔõô´Óstruts.xmlÅäÖÃÎļþÀïÓ³Éäµ½jspÒ³ÃæÀÒÔÇ°servletÀïдout.orint("xxxxx")¾Í¿ÉÒԵõ½~£¬µ«ÊÇÏÖÔÚÓÃstruts¾Í²»ÖªµÀÔõôР......
±¾È˹¤×÷¾ÑéÒ»ÄêÒÔÉÏ
ÊìϤasp.net
ÊìϤjavascript
ÊìϤCss
ÊìϤajax
ÊìϤsqlserver2005
ÓÐÒ»ÄêµÄÏîÄ¿¾Ñé
¾ßÌåÏîÄ¿ºÍÆäËûµÄ¾Í²»ÔÚÕâдÁË
ÓÐÒâÕßÁªÏµ£º
QQ:359233910
ÒýÓÃ
±¾È˹¤×÷¾ÑéÒ»ÄêÒÔÉÏ
ÊìϤasp ......
1.asp.net×öµÄÒ»¸ö´ðÌâÒ³Ã棬ÈçºÎʵʱÏÞʱºó×Ô¶¯Ìá½»£¬Çë´ó¼Ò¸øµã˼·
ÏÞʱµÄʱ¼äÐÅÏ¢´æ·ÅÔÚÊý¾Ý¿âÖÐ
2.Èç¹û´ðÌâʱ¼äÉèÖõĽϳ¤£¬ÈçºÎ·½Ê½session³¬Ê±ºóÒ³ÃæÎÞЧ
лл
ÓÃjs·½·¨À´¿ØÖÆ
»Ø¸´ÄÚÈÝÌ«¶ÌÁË¡£¡£
js ......
´úÂëÈçÏ Çë¸ßÊÖ Ö¸µãÏ лл
ajax_http.js
-------------
function getXMLHTTP() {
var xmlhttp;
if (window.ActiveXObject) {
//IE
try {
......