Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ASP.NET+JQueryʵÏÖAJAXµÄ·ÖÒ³

  AJAXµÄ·ÖÒ³£¬ÊµÏÖ˼·ÊÇ£º
¡¡¡¡1.ÀûÓÃ$.fn.extendÔÚJQuery¿ò¼ÜÏÂÀ©Õ¹pagerÀà
¡¡¡¡2.½«»ñÈ¡¼Ç¼×ÜÊýÓëÏàÓ¦Ò³¼Ç¼µÄºǫ́·½·¨£¬Ð´Ôڼ̳Ð×ÔIHttpHandlerÀàµÄHandler.ashx.csÀ࣬µ±È»Êµ¼ÊÉÏÓÃaspx.csÎļþдºǫ́·½·¨Ò²Ã»ÎÊÌ⣬µ«ÓÉÓÚ.ashx.csÎļþÎÞÐè´¦ÀíÒ³ÃæÖî¶àʼþÒò¶øÐ§Âʸü¸ß¡£
¡¡¡¡3.ÔÚ³ÊÏÖÒ³ÃæÉϼÓÔØpagerÀà
¡¡¡¡ÒÔÏÂÊÇʵÏֵĴúÂ룺
1.À©Õ¹pagerÀà:extend.js
      (function($){ $.fn.extend({ pager: function(totalCount,options) { var opts = jQuery.extend({ pageSize:10, callback:function(){} }, options); return this.each(function(){ var panel = $(this); function pageCount(){ return Math.ceil(totalCount/opts.pageSize); } function selectPage(type){ return function(){ var page = parseInt($('#currentPage').val()); if(type=='first') $('#currentPage').val('1'); if(type=='last') $('#currentPage').val($('#totalCount').val()); if(type=='previous') { if ((page-1)==0) $('#currentPage').val('1'); else $('#currentPage').val(page-1); } if(type=='next') { if ((page+1)>parseInt($('#totalCount').val())) $('#currentPage').val($('#totalCount').val()); else $('#currentPage').val(page+1); } //go°´Å¥ if(type=='go'){ if(isNaN($('input.page-index').val())||$('input.page-index').val()=='') return false; var textIndex = parseInt($('input.page-index').val()); $('#currentPage').val(textIndex); if(textIndex < 1) $('#currentPage').val('1'); else if(textIndex > parseInt($('#totalCount').val())) $('#currentPag


Ïà¹ØÎĵµ£º

ASP.NETÊý¾Ý°ó¶¨_µÚËÄÆª_ÓÃSqlDataSource¿Ø¼þ°ó¶¨_02

+++ Ò³Ãæ´úÂëÈçÏ£º
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True" PageSize="3"
    AutoGenerateColumns="true" DataKeyNames="username" DataSourceID="SqlDataSource1"
    AutoGenerateDeleteButton="True"
    AutoGen ......

ASP.NETÑéÖ¤Âë

 
1.GSC_WebControlLibrary ÕâÊÇÔÚÍøÉÏÕÒµ½µÄÒ»¸ö¿Ø¼þ£¬·Ç³£ºÃÓᣵ«ÊÇЧ¹û²»ÊÇÌØ±ðºÃ£¨¼ûÏÂͼ¡£
£©ËäÈ»ÈÝÒ×ʹÓã¬ËùÓеÄÊôÐÔ¶¼¿ÉÒÔÏñ¿Ø¼þÒ»ÑùÉèÖ㬵«ÊÇ¿ÉÓÃÐÔ²»Ì«¸ß¡£Óû§²»ÄÜ×Ô¶¨Ò壬¶øÇÒ¿´ÆðÀ´Õâ¸öÑéÖ¤ÂëЧ¹û²»Ì«ºÃ¡£
Ч¹û£º
2.ÓÃÒ»¸öÒ³ÃæÉú³ÉͼƬ£¬ÁíÒ»¸öÒ³Ãæµ÷Óã¬ÑéÖ¤Âë´æÈëcookie£¬µ÷ÓÃʱȡcookie ......

Asp.net MVC2ѧϰ±Ê¼Ç6 ¼òµ¥ÊµÀý(Movie)(ÏÂ)

½ñÌìÎÒÃǼÌÐøÍê³É Õâ¸ö MVC2 ¼òµ¥ÊµÀýµÄÊ£Ó๦ÄÜ£ºÏÔʾÃ÷ϸ¡¢Ìí¼Ó¡¢±à¼­µÈ¡£¡£¡£¡£¡£
Ò»¡¢ÏÔʾÃ÷ϸ
¡¡¡¡ÔÚ MoviewsControllerÖÐµÄ Details·½·¨Àï ÓÒ¼ü--Add view£¬´´½¨Ò»¸öÇ¿ÀàÐ͵ÄÊÓͼ
¡¡¡¡
¡¡¡¡
È·¶¨ºó£¬Õâ¸öÃ÷ϸµÄÊÓͼÎļþ¾ÍÒѾ­Éú³É¡£¡£¡£
´Ëʱ£¬ÎÒÃÇÐèÒªÐÞ¸Ä Detials ·½·¨£¬¸ù¾Ý ´«µÝ¹ýÀ´µÄ id²ÎÊý£¬È¥Êý¾Ý¿â²éÑ ......

ÔÚasp.net 2.0ÖÐʹÓÃWebParts£¨×ªÔØ£©


WebPartManager
WebPartManager¿Ø¼þÊÇ Web ²¿¼þ¿Ø¼þ¼¯µÄºËÐĿؼþ£¬ÓÃÓÚ¹ÜÀíËùÓÐ Web ²¿¼þ¿Ø¼þ¡¢Web ²¿¼þ¹¦ÄÜºÍ Web ²¿¼þʼþ¡£
±ØÐëÏòʹÓà Web ²¿¼þ¿Ø¼þµÄÿ¸öÒ³Ìí¼ÓÒ»¸ö£¨½ö½öÒ»¸ö£©WebPartManager¿Ø¼þ¡£WebPartManager¿Ø¼þÖ»ÄÜÓÉͨ¹ýÉí·ÝÑéÖ¤µÄÓû§Ê¹Óá£
WebPartManger ÈÎÎñ
ϱíÁгöÁËÓÉ WebPartManager¿Ø¼þÖ´Ðе ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ