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

asp.net»ñÈ¡´«ÖµgetºÍpostÇëÇó

//postÇëÇó
string name = Request["name"].toString();
string name =Request.Form.Get("name").toString();
//getÇëÇó
string name = Request.QueryString["name"].toString();
µ«ÎÒ·¢ÏÖ ÎÞÂÛÊÇ·ñÊÇpostÓëget´«Öµ¶¼¿ÉÓÃ
string name = Request["name"].toString();

±íµ¥Ìá½»ÖÐgetºÍpost·½Ê½µÄÇø±ð¹éÄÉÈçϼ¸µã£º
1. getÊÇ´Ó·þÎñÆ÷ÉÏ»ñÈ¡Êý¾Ý£¬postÊÇÏò·þÎñÆ÷´«ËÍÊý¾Ý¡£
2. getÊǰѲÎÊýÊý¾Ý¶ÓÁмӵ½Ìá½»±íµ¥µÄACTIONÊôÐÔËùÖ¸µÄURLÖУ¬ÖµºÍ±íµ¥ÄÚ¸÷¸ö×Ö¶ÎÒ»Ò»¶ÔÓ¦£¬ÔÚURLÖпÉÒÔ¿´µ½¡£postÊÇͨ¹ýHTTP post»úÖÆ£¬½«±íµ¥ÄÚ¸÷¸ö×Ö¶ÎÓëÆäÄÚÈÝ·ÅÖÃÔÚHTML HEADERÄÚÒ»Æð´«Ë͵½ACTIONÊôÐÔËùÖ¸µÄURLµØÖ·¡£Óû§¿´²»µ½Õâ¸ö¹ý³Ì¡£
3. ¶ÔÓÚget·½Ê½£¬·þÎñÆ÷¶ËÓÃRequest.QueryString»ñÈ¡±äÁ¿µÄÖµ£¬¶ÔÓÚpost·½Ê½£¬·þÎñÆ÷¶ËÓÃRequest.Form»ñÈ¡Ìá½»µÄÊý¾Ý¡£
4. get´«Ë͵ÄÊý¾ÝÁ¿½ÏС£¬²»ÄÜ´óÓÚ2KB¡£post´«Ë͵ÄÊý¾ÝÁ¿½Ï´ó£¬Ò»°ã±»Ä¬ÈÏΪ²»ÊÜÏÞÖÆ¡£µ«ÀíÂÛÉÏ£¬IIS4ÖÐ×î´óÁ¿Îª80KB£¬IIS5ÖÐΪ100KB¡£
5. get°²È«ÐԷdz£µÍ£¬post°²È«ÐԽϸߡ£


Ïà¹ØÎĵµ£º

asp.netÖÐÈçºÎ±éÀúHashTable

asp.net±éÀúHashTableÐèÒªÓõ½DictionaryEntry Object£¬asp.net±éÀúHashTable£¬¿ÉÒÔͨ¹ýÈçÏÂÁ½ÖÖ·½·¨À´ÊµÏÖ£¬
·½·¨Ò»£º
foreach (System.Collections.DictionaryEntry objDE in objHasTab)
{
    Console.WriteLine(objDE.Key.ToString());
    Console.WriteLine(objDE.Value.ToString ......

¡¾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 Óʼþ·¢ËÍ

//ʵÀý»¯Ò»¸öSmtpClientsmtp.DeliveryMethod = SmtpDeliveryMethod.Network;
SmtpClient smtp = new SmtpClient();
smtp.DeliveryMethod = SmtpDeliveryMethod.Network;

//½«smtpµÄ³öÕ¾·½Ê½ÉèΪ Networksmtp.EnableSsl = false;
//smtp·þÎñÆ÷ÊÇ·ñÆôÓÃSSL¼ÓÃÜ
smtp ......

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

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