Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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ÖÐÎļþÉÏ´«ÏÂÔØ·½·¨¼¯ºÏ


 ÎļþµÄÉÏ´«ÏÂÔØÊÇÎÒÃÇÔÚʵ¼ÊÏîÄ¿¿ª·¢¹ý³ÌÖо­³£ÐèÒªÓõ½µÄ¼¼Êõ£¬ÕâÀï¸ø³ö¼¸ÖÖ³£¼ûµÄ·½·¨£¬±¾ÎÄÖ÷ÒªÄÚÈÝ°üÀ¨£º
¡¡¡¡1¡¢ÈçºÎ½â¾öÎļþÉÏ´«´óСµÄÏÞÖÆ
¡¡¡¡2¡¢ÒÔÎļþÐÎʽ±£´æµ½·þÎñÆ÷
¡¡¡¡3¡¢×ª»»³É¶þ½øÖÆ×Ö½ÚÁ÷±£´æµ½Êý¾Ý¿âÒÔ¼°ÏÂÔØ·½·¨
¡¡¡¡4¡¢ÉÏ´«InternetÉϵÄ×ÊÔ´
¡¡¡¡µÚÒ»²¿·Ö£º
¡¡¡¡Ê×ÏÈÎÒÃÇÀ´ËµÒ»ÏÂÈçºÎ½ ......

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

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

ASP.NET(C#)³£ÓôúÂë30Àý

 1. ´ò¿ªÐµĴ°¿Ú²¢´«ËͲÎÊý£º 
¡¡¡¡´«ËͲÎÊý£º
response.write("£¼script£¾window.open(’*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"’)£¼/script£¾")
¡¡¡¡½ÓÊÕ²ÎÊý£º
string a = Request.QueryString("id");
string b = Request.QueryS ......

ASP.NET¿çÒ³Ãæ´«Öµ¼¼ÇÉ

1.  ʹÓÃQueryString±äÁ¿
¡¡¡¡¡¡¡¡QueryStringÊÇÒ»Öַdz£¼òµ¥µÄ´«Öµ·½Ê½£¬Ëû¿ÉÒÔ½«´«Ë͵ÄÖµÏÔʾÔÚä¯ÀÀÆ÷µÄµØÖ·À¸ÖС£Èç¹ûÊÇ´«µÝÒ»¸ö»ò¶à¸ö°²È«ÐÔÒªÇ󲻸߻òÊǽṹ¼òµ¥µÄÊýֵʱ£¬¿ÉÒÔʹÓÃÕâ¸ö·½·¨¡£µ«ÊǶÔÓÚ´«µÝÊý×é»ò¶ÔÏóµÄ»°£¬¾Í²»ÄÜÓÃÕâ¸ö·½·¨ÁË¡£ÏÂÃæÊÇÒ»¸öÀý×Ó£º
a.aspxµÄC#´úÂë
private void Button1_Click(ob ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ