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

ASP.net Gridview ʹÓÃÖ¸ÄÏ

GridViewʹÓÃÏê½â
 01 GridViewÎÞ´úÂë·ÖÒ³ÅÅÐò
 02 GridViewÑ¡ÖУ¬±à¼­£¬È¡Ïû£¬É¾³ý
 03 GridViewÕý·´Ë«ÏòÅÅÐò
 04 GridViewºÍÏÂÀ­²Ëµ¥DropDownList½áºÏ
05 GridViewºÍCheckBox½áºÏ
 06 Êó±êÒƵ½GridViewijһÐÐʱ¸Ä±ä¸ÃÐеı³¾°É«·½·¨Ò»
 07 Êó±êÒƵ½GridViewijһÐÐʱ¸Ä±ä¸ÃÐеı³¾°É«·½·¨¶þ
08 GridViewʵÏÖɾ³ýʱµ¯³öÈ·È϶Ի°¿ò
09 GridViewʵÏÖ×Ô¶¯±àºÅ
10 GridViewʵÏÖ×Ô¶¨Òåʱ¼ä»õ±ÒµÈ×Ö·û´®¸ñʽ
 11 GridViewʵÏÖÓÓ...”´úÌ泬³¤×Ö·û´®
12 GridViewÒ»°ã»»ÐÐÓëÇ¿ÖÆ»»ÐÐ
13 GridViewÏÔʾÒþ²ØijһÁÐ
14 GridViewµ¯³öÐÂÒ³Ãæ/µ¯³öд°¿Ú
 15 GridView¹Ì¶¨±íÍ·(²»ÓÃjavascriptÖ»ÓÃCSS£¬2ÐдúÂ룬ºÜºÃÓÃ)
16 GridViewºÏ²¢±íÍ·¶àÖرíÍ·ÎÞ´íÍêÃÀ°æ£¨ÒԺϲ¢3ÁÐ3ÐоÙÀý£©
17 GridViewÍ»³öÏÔʾijһµ¥Ôª¸ñ£¨ÀýÈç½ð¶îµÍÓÚ¶àÉÙ£¬·ÖÊý²»¼°¸ñµÈ£©
18 GridView¼ÓÈë×Ô¶¯ÇóºÍÇóƽ¾ùֵС¼Æ
19 GridViewÊý¾Ýµ¼ÈëExcel/ExcelÊý¾Ý¶ÁÈëGridView 1.GridView¼òµ¥´úÂë·ÖÒ³ÅÅÐò£º 1.AllowSortingÉèΪTrue£¬aspx´úÂëÖÐÊÇAllowSorting="True"£» 2.ĬÈÏ1Ò³10Ìõ£¬Èç¹ûÒªÐÞ¸ÄÿҳÌõÊý£¬ÐÞ¸ÄPageSize¼´¿É£¬ÔÚaspx´úÂëÖÐÊÇPageSize="12"¡£ 3.ĬÈϵÄÊǵ¥ÏòÅÅÐòµÄ£¬ÓÒ»÷GridViewµ¯³ö“ÊôÐÔ”£¬Ñ¡ÔñAllowSortingΪTrue¼´¿É¡£ 4.Ìí¼Ó´úÂë: protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e) { GridView1.PageIndex = e.NewPageIndex; Bind(); } 2.GridViewÑ¡ÖУ¬±à¼­£¬È¡Ïû£¬É¾³ý£º ºǫ́´úÂ룺 using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.Data.SqlClient; public partial class _Default : System.Web.UI.Page { SqlConnection sqlcon; SqlCommand sqlcom; string strCon = "Data Source=(local);Database=Êý¾Ý¿âÃû;Uid=ÕʺÅ;Pwd=ÃÜÂë"; protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { bind(); } } protected void GridView1_RowEditing(object sender, GridViewEditEventArgs e) { GridView1.EditIndex = e.NewEditIndex; bind(); } //ɾ³ý protected void GridView1_RowDeleting(object sender,


Ïà¹ØÎĵµ£º

ASP.NET ViewState ¼ò½é

  ASP.NET ViewState ÊÇÒ»ÖÖеÄ״̬·þÎñ£¬¿É¹©¿ª·¢ÈËÔ±»ùÓÚÿ¸öÓû§À´¸ú×Ù UI ״̬£¬¸Ã¸¨ÖúÊý¾Ý±»´æ´¢ÔÚÒ»¸öÃûΪ __VIEWSTATE µÄÒþ²Ø×Ö¶ÎÖС£
    µ±È»£¬ ViewState ÔÚ ASP.NET ÖÐÓиöÖØÒªµÄ½ÇÉ«¡£Èç¹ûʹÓÃÇ¡µ±£¬ËüÄܹ»¼ò»¯Ò³Ã濪·¢£¬¸Ä½øÓû§ÓëÕ¾µãµÄ½»»¥¡£Èç¹ûÖÃÖ®²»Àí£¬ËüÄܹ»ÏÔÖøÔö¼ÓÕ¾µãÏìÓ¦´óÐ ......

asp.net½ûÖ¹Ò³Ãæˢе¼ÖÂÖظ´Ìá½»

ÍøÉÏÕÒµ½µÄÒ»¸ö°ì·¨£¬Ò²¿ÉÒÔ½â¾ö Óûسµ¼ü´úÌæÌá½»°´Å¥Ê±£¬Óû§³£°´»Ø³µ£¨·Ç³£¿ìËٵĵã»Ø³µ£©µ¼ÖÂÖظ´Ìá½»µÄÇé¿ö£º 
public class SubmitOncePage : System.Web.UI.Page
    {
        private string _strSessionKey;
      &n ......

asp.net (c#)¿Ø¼þ´óÈ«

DataGridView ¿Ø¼þDataGridView ¿Ø¼þÌṩÓÃÀ´ÏÔʾÊý¾ÝµÄ¿É×Ô¶¨Òå±í¡£Ê¹Óà DataGridView À࣬¿ÉÒÔ×Ô¶¨Òåµ¥Ôª¸ñ¡¢ÐС¢Áкͱ߿ò¡£
×¢Òâ
DataGridView ¿Ø¼þÌṩ DataGrid ¿Ø¼þËù²»¾ß±¸µÄÐí¶à»ù±¾ºÍ¸ß¼¶¹¦ÄÜ¡£Óйظü¶àÐÅÏ¢£¬Çë²Î¼û Windows ´°Ìå DataGridView ¿Ø¼þºÍ
DataGrid ¿Ø¼þÖ®¼äµÄÇø±ð
³£ÓÃÊôÐÔ:
DefaultCellStyle¡¢ ......

asp.net È¥µôviewstate

½â¾ö°ì·¨£ºapp_code/ ´æ·ÅÒ»¸öÀà ÓÃÀ´½Ø»ñHTTP
1.´úÂëÈçÏÂ
using System;
using System.IO;
using System.Web;
using System.Text;
using System.Text.RegularExpressions;
/// <summary>
/// Removes whitespace from the webpage.
/// </summary>
public class ViewstateModule : IHttpModule
{
......

Asp.Net ¹¹¼Ü(HttpModule ½éÉÜ)

http://www.cnblogs.com/JimmyZhang/archive/2007/11/25/971878.html
ÒýÑÔ
Http ÇëÇó´¦ÀíÁ÷³Ì ºÍ Http Handler ½éÉÜ ÕâÁ½ÆªÎÄÕÂÀÎÒÃÇÊ×ÏÈÁ˽âÁËHttpÇëÇóÔÚ·þÎñÆ÷¶ËµÄ´¦ÀíÁ÷³Ì£¬ËæºóÎÒÃÇÖªµÀHttpÇëÇó×îÖÕ»áÓÉʵÏÖÁËIHttpHandler½Ó¿ÚµÄÀà½øÐд¦Àí(Ó¦¸Ã¼ÇµÃPageÀàʵÏÖÁËIHttpHandler)¡£´Ó Http ÇëÇó´¦ÀíÁ÷³Ì Ò»ÎĵÄ×îºóµÄ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ