Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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̽Õë·ÂpetshopµÄÒ»¸öÊý¾Ý·ÃÎʲãµÄÀà

·ÂpetshopµÄÒ»¸öÊý¾Ý·ÃÎʲãµÄÀà ³Ë·çÏÖÓÐÔ­´´³ÌÐò³Ë·ç¹ã¸æÁªÃËϵͳ³Ë·ç¶àÓû§¼ÆÊýÆ÷ ³Ë·ç¶àÓû§PHPͳ¼Æϵͳ ³Ë·çµçÓ°³ÌÐò³Ë·çÍøÖ·³ÌÐò³Ë·ç¹ã¸æ¹ÜÀíϵͳ³Ë·çasp.net̽Õë·ÂpetshopµÄÒ»¸öÊý¾Ý·ÃÎʲãµÄÀà using System;
using System.Data;
using System.Data.OleDb;
using System.Configuration;
namespace yueying.Compon ......

FCKeditor(Asp.Net)µÄÅäÖÃÓ밲ȫÐÔ

Ç°ÑÔ
FCKeditorÊÇʹÓ÷dz£¹ã·ºµÄHTML±à¼­Æ÷£¬±¾ÎÄ´Ó ASP.NET µÄʹÓó¡¾°¶Ô FCKeditor Óë FCKeditor.NET µÄÅäÖᢹ¦ÄÜÀ©Õ¹£¨Èç×Ô¶¨ÒåÎļþÉÏ´«×ÓĿ¼¡¢×Ô¶¨ÒåÎļþÃû¡¢ÉÏ´«Í¼Æ¬µÄºóÆÚ´¦ÀíµÈ£©¡¢ÒÔ¼°°²È«ÐÔ½øÐгõ²½µÄ²ûÊö¡£
Ï£ÍûÄÜ°ïÖúÓÐͬÑùÐèÇóµÄͬÈʽÚÊ¡Ò»µãʱ¼ä£»Ò²Ï£Íû¸÷λÄÜÖ¸ÕýÆäÖеIJ»×㡣лл¡£
Ò»¡¢×Ô¶¨Òå FCKedit ......

ASP.NET ʼþ˳Ðò

1.Init£¨³õʼ»¯½×¶Î£©
2.LoadViewState£¨ÔØÈëÊÓͼ״̬£©
3.LoadPostData£¨´¦Àí»Ø·¢Êý¾Ý£©
    public   virtual   bool   LoadPostData(string   postDataKey,   NameValueCollection   postCollection)
     ÅжÏÊÓÍ ......

ASP.NET δ±»ÊÚȨ·ÃÎÊËùÇëÇóµÄ×ÊÔ´

ASP.NET δ±»ÊÚȨ·ÃÎÊËùÇëÇóµÄ×ÊÔ´¡£Ç뿼ÂÇÊÚÓè ASP.NET ÇëÇó±êʶ·ÃÎÊ´Ë×ÊÔ´µÄȨÏÞ¡£ASP.NET ÓÐÒ»¸öÔÚÓ¦ÓóÌÐòûÓÐÄ£ÄâʱʹÓõĻù½ø³Ì±êʶ(ͨ³££¬ÔÚ IIS 5 ÉÏΪ {MACHINE}\ASPNET£¬ÔÚ IIS 6 ÉÏΪÍøÂç·þÎñ)¡£Èç¹ûÓ¦ÓóÌÐòÕýÔÚͨ¹ý Ä£Ä⣬Ôò±êʶ½«ÎªÄäÃûÓû§(ͨ³£Îª IUSR_MACHINENAME)»ò¾­¹ýÉí·ÝÑéÖ¤µÄÇëÇóÓû§¡£
ÈôÒªÊÚÓè ......

asp.netÖе÷ÓÃjavascript×Ô¶¨Ò庯ÊýµÄ·½·¨×ܽá

ͨ³£javascript´úÂë¿ÉÒÔÓëHTML±êÇ©Ò»ÆðÖ±½Ó·ÅÔÚÇ°¶ËÒ³ÃæÖУ¬µ«Èç¹ûJS´úÂë¶àµÄ»°Ò»·½Ãæ²»ÀûÓÚά»¤£¬ÁíÒ»·½ÃæÒ²¶ÔËÑË÷ÒýÇæ²»ÓѺã¬Òò
ΪҳÃæÒò´Ë¶ø±äµÃÓ·Ö×£»ËùÒÔÒ»°ãÓÐÁ¼ºÃ¿ª·¢Ï°¹ßµÄ³ÌÐòÔ±¶¼»á°Ñjavascript´úÂë·Åµ½¶ÀÁ¢µÄjsÎļþÖУ¬ÆäËûÒ³Ãæͨ¹ýÒýÈë¸ÃjsÎļþÀ´Ê¹ÓÃÏàÓ¦µÄ
javascript´úÂë¡£
½ñÌìÔÚ×öÒ»¸öСÐÂÎÅϵͳµÄ¹ÜÀí ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ