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

ASP.NET´óÊý¾ÝÁ¿²éѯ·ÖÒ³Àý×Ó

 Èç¹ûÊÇaccess ¾ÍÓÃÕâ¸öSQLHELPER http://hi.csdn.net/link.php?url=http://blog.csdn.net/zzxap
Èç¹ûÊÇMSSQL ¾ÍÓÃÕâ¸ösqlhelper http://www.cnblogs.com/zzxap/archive/2009/11/05/1596773.html
ǰ̨ Èç¹ûÄãÓõÄÊÇ gridview ¾Í°ÑRepeaterÌæ»»³Égridview ¡£Ò»ÑùµÄ¡£¡£
<form id="frm01" action="" method="post" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<div id="center-top" > <div class="fon">Öмä1</div> </div>
<div id="center-content_Default2" >
<asp:Repeater runat="server" Id="mainlist" >
<ItemTemplate>
<div id="pic-out" >
<li class="pic-a" > Eval("product_type").ToString() </li>
<li class="pic-b" >Eval("product_desc").ToString() </li>
<li>¼Û¸ñ<%#Eval("price")%> </li>
</div>
</ItemTemplate>
</asp:Repeater>
</div>
<div style="PADDING-TOP:10px; text-align:center" mce_style="PADDING-TOP:10px; text-align:center" >
  ¹²<asp:label id="LPageCount" ForeColor="#ff0000" Runat="server"></asp:label>Ò³
<asp:label id="LTotalCount" ForeColor="#ff0000" Runat="server"></asp:label>Ìõ¼Ç¼
<asp:linkbutton id="Fistpage" Runat="server" CommandName="0" OnClick="Pager_Click">Ê×頁</asp:linkbutton>
<asp:linkbutton id="Prevpage" Runat="server" CommandName="prev" OnClick="Pager_Click">ÉÏÒ»頁</asp:linkbutton>
<asp:linkbutton id="Nextpage" Runat="serv


Ïà¹ØÎĵµ£º

¹Ø±ÕÊý¾Ý¿âÁ¬½ÓµÄ¸ßЧ·½·¨ (asp.net 2.0 C#)

 
ÎÒÃÇ»¹¿ÉÒÔ²ÉÓÃÒ»ÖÖ¸ü¼Ó¼ò±ãµÄ·½
·¨À´ÊµÏÖÉÏÊö³ÌÐòµÄ¹¦ÄÜ¡£Õâ¾ÍÊǽ«SqlConnection¶ÔÏó°üº¬µ½usingÇø¿éÖУ¬ÕâÑù³ÌÐò»á×Ô¶¯µ÷ÓÃDispose()·½·¨ÊÍ·Å
SqlConnection¶ÔÏóËùÕ¼ÓõÄϵͳ×ÊÔ´£¬ÎÞÐèÔÙʹÓÃSqlConnection¶ÔÏóµÄClose()·½·¨¡£
·¶Àý³ÌÐò´úÂëÈçÏ£º
public partial class _Default : System.Web.UI.Page
{
......

ʹÓÃASP.NET 2.0ÔÚWebÒ³ÃæÍêÃÀµØ»­³ö±ýͼ

 ¸ÅÄÆäʵ˼··Ç³£¼òµ¥£¬¾ÍÏñ»­»­Ò»Ñù£¬ÄãÄÔÖеıýͼÏëɶÑù×ӵģ¬¾Í°ÑËüÔÚÍøÒ³Àï»­³öÀ´¶øÒÑ¡£ÏàÐÅ´ó¼ÒСʱºò¶¼»­¹ý»­£¬²»Í¬µÄÊÇ£¬Ð¡Ê±ºò£¬ÔÚÖ½ÉÏ»­£¬ÏÖÔÚÔÚÍøÒ³ÉÏ»­¡£
ÕâÊÇÎÒÄÔ×ÓÀï±ýͼµÄÑù×Ó£º<¼¤¹â´«Õæ»ú>
C#ºǫ́ʾÀý´úÂ룺<¼¤¹âÒ»Ìå»ú>
using System;
using System.Data;
using System.Configur ......

½â¾öASP.NetÉÏ´«´óÎļþ³¬Ê±»ò´íÎóµÄÎÊÌâ

 ¡¡¡¡.Net ÀïÉÏ´«´óÎļþʱ£¬»áÓöµ½³¬Ê±»òHTTP500´íÎ󣬽â¾öµÄ°ì·¨ÓÐÁ½ÖÖ£ºÒ»ÖÖÊÇÐÞ¸ÄÅäÖã¬ÁíÒ»ÖÖ¾ÍÊÇÓõÚÈý·½¿Ø¼þ¡£ÕâÀï½éÉÜÒ»ÏÂÐÞ¸ÄÅäÖõġ£
ÐèÒªÐ޸ĵÄÊÇ
ÔÚ C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\CONFIGĿ¼À
ÕÒµ½ÎļþmaxRequestLength="4096"
½«ÖµÐ޸ĴóһЩ£¬ÀýÈ磺102400
Õâ¸ö²ÎÊýµÄµ¥Î»Ó¦¸ÃÊ ......

ASP.NETÖÐÓû§ÊäÈëÎı¾µÄHTML½âÎö°ì·¨

 ÍøÒ³ÖÐÓÃTextBoxÈÃÓû§ÊäÈëÎı¾£¬È»ºó´æÈëÊý¾Ý¿â£¬ÔÙ´ÓÊý¾Ý¿âÖжÁ³öÏÔʾÔÚÒ³ÃæÉÏ¡£³£³£ÕâÑù×ö»áÓöµ½²»ÉÙÎÊÌ⣬ÒòΪTextBoxʵ¼ÊÉÏÊÇÒ»¸öWindows×é¼þ£¬ºÍÍøÒ³ÏÔʾ±ê¼ÇÈ磺<p>,<td>,<div>µÈ£¬¶Ô×Ö·ûµÄ½âÎö·½·¨ÊDz»Í¬µÄ¡£±ÈÈçÇ°ÕߵĻ»Ðбê¼ÇΪ“\r\n”£¬¶øºóÕßΪ“<br>”¡£Õ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ