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

Asp.NetÖÐPostÓëGetµÄÇø±ð


±íµ¥formµÄÌá½»ÓÐÁ½ÖÖ·½Ê½£¬Ò»ÖÖÊÇgetµÄ·½·¨£¬Ò»ÖÖÊÇpost µÄ·½·¨.¿´ÏÂÃæ´úÂë,Àí½âÁ½ÖÖÌá½»µÄÇø±ð:
1 <form id="form1" method="get" runat="server">
2     <div>
3          ÄãµÄÃû×Ö<asp:TextBox ID="name" runat="server"></asp:TextBox><br />
4         <br />
5          ÄãµÄÍøÕ¾<asp:TextBox ID="website" runat="server"></asp:TextBox><br />
6         <br />
7         <br />
8         <asp:Button ID="Button1" runat="server" Text="send" /><br />
9         <br />
10         <br />
11          ѧϰrequest ºÍ responseµÄÓ÷¨<br />
12         <br />
13         <br />
14     </div>
15     </form>
1 <form id="form2" method="post" runat="server">
2     <div>
3          ÄãµÄÃû×Ö<asp:TextBox ID="name2" runat="server"></asp:TextBox><br />
4         <br />
5          ÄãµÄÍøÕ¾<asp:TextBox ID="website2" runat="server"></asp:TextBox><br />
6         <br />
7         <br />
8         <asp:Button ID="Button2" runat="server" Text="send" /><br />
9         <br />
10     


Ïà¹ØÎĵµ£º

SilverlightÓ¦ÓóÌÐòÖÐÈçºÎ»ñÈ¡ASP.NETÒ³Ãæ²ÎÊý

¸ÅÊö
ÔÚ¿ª·¢SilverlightÓ¦ÓóÌÐòʱ£¬ÎÒÃǾ­³£»áÓöµ½ÕâÑùÒ»ÖÖÇé¿ö£¬ÐèÒªÔÚSilverlightÓ¦ÓóÌÐòµÄUserControlÖлñÈ¡ASP.NETÒ³Ãæ²ÎÊý£¬Õâ¸ö²ÎÊý²»Ò»¶¨À´×ÔÓÚµ±Ç°SilverlightÓ¦ÓóÌÐòµÄËÞÖ÷Ò³Ã棬¶øÓпÉÄÜÀ´×ÔÓÚÆäËüµÄASP.NETÒ³Ãæ¡£
±¾ÎÄÎÒÃǼòµ¥µÄ½éÉÜÒ»ÏÂÈçºÎÔÚSilverlightÓ¦ÓóÌÐòÖлñÈ¡ASP.NETÒ³Ãæ²ÎÊý¡£
ÐèÇó
ÈçÏÂÃæµÄ ......

asp.net(c#) ÏÂSQL´æ´¢¹ý³ÌʹÓÃÏêϸʵÀý

¼ÇÈ¡¼Ç¼¼¯
create procedure getArticle
as
select * from Article_Content
GO
asp.net µ÷Ó÷½·¨
  SqlConnection Conn = new SqlConnection();
        Conn.ConnectionString = Data.Connstr();
        Conn.Open();
  ......

ASP.NETÍøÒ³µÄ´¦Àí¹ý³Ì

     ASP.NETµÄ¹Ø¼üÄ¿±êÖ®Ò»ÊÇ´´½¨Ò»ÖÖÈÿª·¢ÈËÔ±Äܹ»ÏñWindowsÓ¦ÓóÌÐò¿ª·¢Õ߶¨ÖÆ×ÀÃæÓ¦ÓóÌÐòÄÇÑùµÄ¿ìËÙ¶¨ÖÆWeb FormsµÄģʽ¡£µ±È»WebÓ¦ÓóÌÐòÓ봫ͳ¸»¿Í»§¶ËÓ¦ÓóÌÐòÓкܴóµÄ²»Í¬£¬ÒªÊµÏÖÕâÖÖģʽÓÐÁ½¸ö¹Ø¼üµÄÕÏ°­¡£
     1.WebÓ¦ÓóÌÐòÊÇÔÚ·þÎñÆ÷¶ËÖ´ÐеģºÀýÈ磬¼ÙÉè´´½¨Ò»¸ ......

ASP.NETÖеÄÊý¾Ý¿â²Ù×÷Ààsqlhelper¼°·½·¨Ê¹ÓÃÖ¸ÄÏ

ÒªÔÚVS2005ÖÐʹÓÃsqlhelperÀà,±ØÐë°ÑMicrosoft.ApplicationBlocks.Data.dllÒýÓõ½ÏîÄ¿ÖÐ.
1.ͨ¹ý´æ´¢¹ý³Ì²éѯµÄ·½·¨SqlHelper.ExecuteDataset(Êý¾Ý¿âÁ¬½Ó×Ö·û, ´æ´¢¹ý³Ì×Ö·û, ²ÎÊýÊý×é);
2.ͨ¹ý×Ö·û´®²éѯµÄ·½·¨SqlHelper.ExecuteDataset(Êý¾Ý¿âÁ¬½Ó×Ö·û, CommandType.Text , ²éѯ×Ö·û´®,²ÎÊýÊý×é);
3.ͨ¹ý´æ´¢¹ý³Ì²åÈëµ ......

asp.netÃæÊԴ𰸲¹³ä2 aspxÒ³ÃæÒÔ¼°È«¾Öʼþ

aspxÒ³ÃæÖÐʼþµÄÖ´ÐÐ˳Ðò
1.asp.netµÄÇëÇó¹ý³Ì£¬ÒÔ¼°¶ÔÓ¦µÄ´¦ÀíÇëÇóµÄdll
¿Í»§µÄÇëÇóÒ³ÃæÓÉaspnet_isapi.dllÕâ¸ö¶¯Ì¬Á¬½Ó¿âÀ´´¦Àí£¬°ÑÇëÇóµÄaspxÎļþ·¢Ë͸øCLR½øÐбàÒëÖ´ÐУ¬È»ºó°ÑHtmlÁ÷·µ»Ø¸øä¯ÀÀÆ÷
2.Ò³Ãæʼþ(°´ÕÕʼþµÄÖ´ÐÐ˳ÐòÅÅÁÐ)
Page_Init£º³õʼ»¯Öµ»òÁ¬½Ó
Page_Load:Ö÷ҪʹÓÃIsPostBack£¬¸ÃʼþÖ÷ÒªÖ´ÐÐ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ