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°²È«ÐԽϸߡ£
Ïà¹ØÎĵµ£º
Cascading drop down lists is a really nice feature for web developers. I thought it was time to write an article on how to do this using ASP.NET and jQuery. Well here’s one way of doing it. Before we get started, this example uses the latest version of jQuery which is 1.3.2.&n ......
ǰÑÔ
FCKeditorÊÇʹÓ÷dz£¹ã·ºµÄHTML±à¼Æ÷£¬±¾ÎÄ´Ó ASP.NET µÄʹÓó¡¾°¶Ô FCKeditor Óë FCKeditor.NET µÄÅäÖᢹ¦ÄÜÀ©Õ¹£¨Èç×Ô¶¨ÒåÎļþÉÏ´«×ÓĿ¼¡¢×Ô¶¨ÒåÎļþÃû¡¢ÉÏ´«Í¼Æ¬µÄºóÆÚ´¦ÀíµÈ£©¡¢ÒÔ¼°°²È«ÐÔ½øÐгõ²½µÄ²ûÊö¡£
Ï£ÍûÄܰïÖúÓÐͬÑùÐèÇóµÄͬÈʽÚʡһµãʱ¼ä£»Ò²Ï£Íû¸÷λÄÜÖ¸ÕýÆäÖеIJ»×㡣лл¡£
Ò»¡¢×Ô¶¨Òå FCKedit ......
Abs(number) È¡µÃÊýÖµµÄ¾ø¶ÔÖµ¡£
Asc(String) È¡µÃ×Ö·û´®±í´ïʽµÄµÚÒ»¸ö×Ö·ûASCII Âë¡£
Atn(number) È¡µÃÒ»¸ö½Ç¶ÈµÄ·´ÕýÇÐÖµ¡£
CallByName (object, procname, usecalltype,[args()]) Ö´ÐÐÒ»¸ö¶ÔÏóµÄ·½·¨¡¢É趨»ò´«»Ø¶ÔÏóµÄÊôÐÔ¡£
CBool(expression) ת»»±í´ïʽΪBoolean ÐÍ̬¡£
CByte(expression) ת»»±í´ïʽΪB ......
1.Init£¨³õʼ»¯½×¶Î£©
2.LoadViewState£¨ÔØÈëÊÓͼ״̬£©
3.LoadPostData£¨´¦Àí»Ø·¢Êý¾Ý£©
public virtual bool LoadPostData(string postDataKey, NameValueCollection postCollection)
ÅжÏÊÓÍ ......
Asp.net DataListǶÌ×DataListµÄʵÏÖ
[ 2006-05-31 01:26:24 | ×÷Õß: Admin ]
×ÖÌå´óС: ´ó | ÖÐ | С
Êý¾Ý·þÎñ¿Ø¼þµÄǶÌ××îÖ÷ÒªµÄÊÇÊÇÄÚ²ã¿Ø¼þÊý¾ÝµÄ¼ÓÔØºÍʼþµÄ´¥·¢¡£ DataListǶÌ×µÄÖØµãÊÇÒªÔÚÍâ²ãDataListµÄItemDataBoundʼþÖÐÓÃe.Item.FindControl·½·¨À´ÕÒµ½Ç¶ÌײãDataListµÄid,±àдǶÌײãDataListµÄ°ó¶¨Êý¾Ý ......