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

ASP.NET Ò³Ãæ´«Öµ·½·¨»ã×Ü

  ÔÚ×öWEBϵͳ¿ª·¢Ê±£¬Ã¿Ã¿Óöµ½Ò³Ãæ´«ÖµµÄÎÊÌⶼÊÇÔÚʹÓÃ×î¼òµ¥µÄGET·½Ê½À´´«Öµ£¬Èç¹ûÐÅÏ¢Á¿±È½ÏÉÙ²¢ÇÒÓÖ²»Éæ¼°°²È«ÎÊÌâµÄ»°
»¹¿ÉÒÔÓ¦¸¶Ò»Ï£¬µ«ÊÇ´«µÝ´óÁ¿Êý¾Ý¡¢Ãô¸ÐÊý¾ÝµÄʱºò.....
  ÏÂÃæ¾ÍASP.NETÖÐÒ³Ãæ´«Öµ·½Ê½×ö¸ö»ã×Ü£¬ÒÔ±¸²»Ê±Ö»Ðè
1¡¢GET´«Öµ·½Ê½
    ·¢ËÍÒ³Ã棺
       <a href="WebReceivePage.aspx?Id=1">½øÈë½ÓÊÜÒ³Ãæ</a>
    ½ÓÊÜÒ³Ãæ     WebReceivePage.cs
    if(!string.IsNullorEmpty(Request.QueryString["Id"]))
     {
         //´¦Àí´úÂë
     }
2¡¢Post·½Ê½
    POST·½Ê½ºÍGET·½·¨µÄ×î´óÇø±ð¾ÍÊÇ°Ñ·¢Ë͵ÄÊý¾ÝºÍURIµØÖ··ÖÀë¡£ÇëÇó²ÎÊýÊÇÔÚhttp±êÌâµÄÒ»¸ö²»Í¬²¿·Ö£¨ÃûΪentity body£©´«ÊäµÄ£¬Í¬Ê±POST´«Öµ·½Ê½ÀíÂÛÉÏûÓдóСÏÞÖÆ¡£
    <form>
 <input name="str" type="text" value="kewin string" />
        <input type="submit" value="POST ´«Öµ"  />
    </form> 
 ½ÓÊÜÒ³Ãæ cs´úÂë
    if(!string.IsNullorEmpty())
      {
          txtReceive.Text=Request.Form["str"];
      }  
    //formÖв»Äܹ»ÓÐ runat="server" ·ñÔòPost²»Æð×÷Óã¬Èç¹ûʹÓÃrunat="server"Ôò¿ÉÒÔ ÁíÍ⸽¼ÓÒ»¸öform ͨ¹ýbuttonµ÷ÓÃ
    //JavaScriptµÄ·½Ê½  form.action="Receiver.aspx"; form.submit();
    //¡¶ÀîÌìƽ .NETÉîÈëÌåÑéÓëʵս¾«Òª¡· P143
3¡¢Ê¹ÓÃSession ºÍApplication
    ·¢ËÍÒ³ SendPage.cs
   Session["Str"]="String Test";
   //Application["Str"]="String Test";
   Server.Transfer("ReceivePage.aspx");//Server.Transfer() ·½·¨Ö±½ÓÔÚ·þÎñÆ÷ÉÏÃæÖ´ÐÐÒ³Ãæ¿ØÖÆȨתÒÆ£¬´ËÆÚ¼äRequest¡¢ SessionµÈ±£³Ö²»±ä
    ½ÓÊÜÒ³Ãæ ReceivePage.cs
   string Str=Session["Str"];
 


Ïà¹ØÎĵµ£º

¡¾asp.net¡¿´úÂëÖмâÀ¨ºÅºÍ°Ù·ÖºÅµÄº¬Òå

1¡¢<%=%> ÀïÃæ·ÅµÄ±äÁ¿Ãû£¬È磺
<div>
<h1>Hello World</h1>
<p>Welcome to Beginning ASP.NET 3.5 on <%=
DateTime.Now.ToString() %></p>
</div>
Êä³ö½á¹ûΪ£º
Hello World
Welcome to Beginning ASP.NET 3.5 on 2009-11-10 15:53:08
2¡¢ <%#%> ÕâÀïÊÇÊ ......

asp.net ²Ù×÷xml

asp.net ¶ÔxmlÎļþµÄ¶Áд,Ìí¼Ó,ÐÞ¸Ä,ɾ³ý²Ù×÷
ÏÂÃæÓдúÂëµ÷ÊÔÕýÈ·
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using&nb ......

¹ØÓÚ ASP.NET Èý²ã¼Ü¹¹

Ò»°ã¶ÔÓÚÓùý ¶¯Èí.net´úÂëÉú³ÉÆ÷µÄÈËÀ´Ëµ£¬Ê¡Á˺öàÊÂÇé¡£  model £¨ÊµÌå²ã£©,  dal£¨Êý¾Ý·ÃÎʲ㣩,  bll£¨ÒµÎñÂß¼­²ã£©
model ¾Í²»ÓÃ˵ÁË dalÊý¾Ý·ÃÎʲãÓеÄʱºòÒªµ÷Óô洢¹ý³Ì£¬ÒÔÇ°ºÜÉÙд£¬¾õµÃ²ÎÊýµÄµ÷ÓÃͦ·Ñ¾¢µÄ£¬´ó¼ÒÓÐʲôºÃµÄ°ì·¨ÄÜÌá¸ß´æ´¢¹ý³ÌÂ𣡣¡£¡£¡£¡£¡£¡£¡£¡£¡ ......

ASP.NET´¦Àí³ÌÐòºÍÄ£¿é£¨Ò»£©

ASP.NET´¦Àí³ÌÐòºÍÄ£¿é
          
          ASP.NET HTTP ´¦Àí³ÌÐò(Handler)ÊÇÏìÓ¦¶Ô ASP.NET Web Ó¦ÓóÌÐòµÄÇëÇó¶øÔËÐеijÌÐò
          
          Èç´¦Àí *.aspxÎļþµÄASP.NET´¦Àí³ÌÐò ......

asp.net³£Óü¼ÇÉ

´ò¿ªÐµĴ°¿Ú²¢´«ËͲÎÊý£º
´«ËͲÎÊý£º
response.write("<script>window.open('*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="++"')
</script>")
½ÓÊÕ²ÎÊý£º
string a = Request.QueryString("id");
string b = Request.QueryString("id1");
2.Ϊ°´Å¥Ìí¼Ó¶Ô»°¿ò
Button1.Attributes.Add("oncl ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ