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

[ת]ASP.NET¶àƵµÀÍøÕ¾¼Ü¹¹ÐĵÃ

asp.net¶àƵµÀÍøÕ¾¿ª·¢¼Ü¹¹Ç³Îö http://www.cnblogs.com/Kenny-Jiang/archive/2007/07/31/837900.html ±³¾°£º
        ÎÒÃÇ´ò¿ªÃÅ»§Íøվʱ£¬ÍùÍù»á¿´µ½ºÜ¶àÅÅÁнôÃܵÄƵµÀÁÐ±í£¬Èç¡°ÐÂÎÅ¡±¡¢¡°²Æ¾­¡±¡¢¡°ÓéÀÖ¡±µÈ¡£ÆµµÀΪÍøÕ¾ÌṩÁË·½±ãµÄµ¼º½¹¦ÄÜ¡£
ÄÚÈÝÃèÊö£º
        ±¾ÎÄÖ÷ÒªÌÖÂÛÔÚasp.net¿ò¼ÜÏÂʵÏÖ¶àƵµÀÍøÕ¾¼Ü¹¹µÄ¼¸ÖÖ·½°¸£¬²¢´Ó´úÂëÖØÓÃÐÔ¡¢¿ª·¢·½Ê½¡¢²¿Êð·½Ê½µÈ¼¸¸ö·½ÃæÀ´¶Ô¸÷·½°¸½øÐзÖÎö¡¢±È½Ï¡£
֪ʶ׼±¸£º
        ±¾ÎÄÖÐÌáµ½µÄ¸÷¼Ü¹¹·½°¸¾ù»ùÓÚMVC(Model-View-Controller)ģʽ£¬¶Ô¸ÃģʽÖи÷×é³É²¿¼þ×÷Èçϼò¶ÌÃèÊö£º
        Model£º°üº¬ÒµÎñÂß¼­²Ù×÷ÒÔ¼°Êý¾Ý·ÃÎʲÙ×÷;
        View£º°üº¬UI´¦ÀíÏà¹Ø²Ù×÷;
        Controller£º¿ØÖƲ¢Ð­µ÷ViewÓëModelµÄ´¦Àí¹ý³Ì ¸÷·½°¸±È½Ï£º
·½°¸ ¼Ü¹¹ÃèÊö ´úÂëÖØÓÃÐÔ ¿ª·¢·½Ê½ ²¿Êð·½Ê½ ·½°¸Ò» ΪÕû¸öÍøÕ¾½¨Á¢Ò»¸öWeb Project¡£
ÿ¸öƵµÀ¶ÔÓ¦ÓÚWeb ProjectÖеÄÒ»¸öĿ¼£¬ÓеãÀàËÆÓÚASPµÄ´¦Àí·½Ê½¡£
Model²¿¼þ¼È¿ÉÒÔ°üº¬ÓÚWeb ProjectÖУ¬Ò²¿ÉÒÔ·â×°³ÉClass Library¡£ ½«Model²¿¼þ·â×°³ÉClass Libraryºó½«»ñµÃ½Ï¸ßµÄÖØÓÃÐÔ¡£ Ä£¿é½ÏΪ¼¯ÖУ¬¿ª·¢½ÏΪ¿ì½Ý£¬µ«²»Êʺϴó¹æģЭ×÷¿ª·¢¡£ Ä£¿é½ÏΪ¼¯ÖУ¬²¿Êð±È½Ï·½±ã£¬µ«Ò»¸öСµÄBUG¿ÉÄܻᵼÖÂÕû¸öÍøÕ¾µÄ̱»¾¡£ ·½°¸¶þ Ϊÿ¸öƵµÀ½¨Á¢Ò»¸öWeb Project¡£
ÿ¸öƵµÀµÄModel²¿¼þ¼È¿ÉÒÔ°üº¬ÓÚÏàÓ¦µÄWeb ProjectÖУ¬Ò²¿ÉÒÔ·Ö±ð·â×°³ÉClass Library¡£ ÿ¸öModel²¿¼þ¶¼Ó¦ÓÃÓÚÌض¨µÄƵµÀ£¬´úÂë·ÖÉ¢£¬ÖØÓÃÐԽϵ͡£ ¸÷Ä£¿é½Ï¶ÀÁ¢£¬Êʺϰ´ÕÕ¹¦ÄÜÄ£¿é·ÖÅäÈÎÎñµÄ¿ª·¢·½Ê½¡£ ¸÷Ä£¿é¶ÀÁ¢£¬²¿Êð¹¤×÷·Ç³£·±¸´£¬µ«ÓÉÓÚ¸÷ƵµÀÊÇËÉñîºÏµÄ(ÉõÖÁ¿ÉÒÔλÓÚ²»Í¬µÄ·þÎñÆ÷)£¬Ò»¸öƵµÀµÄ¹ÊÕϲ»»áÓ°Ïìµ½ÆäËûƵµÀµÄÕý³£ÔËÐС£ ·½°¸Èý Ϊÿ¸öƵµÀ½¨Á¢Ò»¸öWeb Project¡£
ËùÓÐƵµÀµÄModel²¿¼þ·â×°³ÉÒ»¸ö¹²ÓõÄClass Library¡£ ËùÓÐƵµÀ¹²ÓÃÒ»¸öModel²¿¼þ£¬´úÂë½ÏΪ¼¯ÖУ¬¾ßÓкܸߵ


Ïà¹ØÎĵµ£º

dz̸ASP.net°²È«±à³Ì

ÔÚWeb±à³Ì¹ý³ÌÖУ¬´æÔÚןܶలȫÒþ»¼¡£±ÈÈçÔÚÒÔÇ°µÄASP°æ±¾ÖУ¬CookieΪ·ÃÎÊÕߺͱà³ÌÕ߶¼ÌṩÁË·½±ã£¬²¢Ã»ÓÐÌṩ¼ÓÃܵŦÄÜ¡£´ò¿ªIEä¯ÀÀÆ÷£¬Ñ¡Ôñ“¹¤¾ß”²Ëµ¥ÀïµÄ“InternetÑ¡Ï¬È»ºóÔÚµ¯³öµÄ¶Ô»°¿òÀïµ¥»÷“ÉèÖÔ°´Å¥£¬Ñ¡Ôñ“²é¿´Îļþ”°´Å¥£¬ÔÚµ¯³öµÄ´°¿ÚÖУ¬¾Í»áÏÔʾӲÅÌÀï ......

ÔÚUpdatePanelÉÏʹÓÃFileUploadÉÏ´«Îļþ (asp.net C#)

 
Ê×ÏÈÎÒºÜÒź¶µÄ¸æËß´ó¼Ò£¬ÒòΪ΢ÈíµÄ͵ÀÁ£¬Ä¿Ç°UpdatePanel»¹²»Ö§³ÖÎļþÉÏ´«¡£±äÏàµÄ½â¾ö°ì·¨¾ÍÊÇUpdatePanelÖÐÉèÖÃPostBackTrigger£º
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:FileUpload ID="FileUpload1" runat="serv ......

ÓÅÐãASP.NET³ÌÐòÔ±µÄÐÞÁ¶Ö®Â·


<!--
/* Font Definitions */
@font-face
{font-family:ËÎÌå;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:SimSun;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
{font-family:"\@ËÎÌå" ......

ASP.NET¿ç·þÎñÆ÷·ÃÎÊFileSystem

 ÏÖÔÚÄ£ÄâÔÚA·þÎñÆ÷ÉÏ·ÃÎÊB·þÎñÆ÷DÅÌϵÄÒ»¸öÎļþ test.txt
1 ÔÚA·þÎñÆ÷ web.config µÄ<system.web>ϼÓÈë<identity impersonate="true" userName="duzhe123.com" password="boosou.com"/>
2 Á½Ì¨·þÎñÆ÷É϶¼½¨Á¢Ò»¸öÕʺŠduzhe123.com£¬ÃÜÂëΪ boosou.com ¡£ºÇºÇ£¬ÕÊºÅºÍ ......

ASP.NETµÄÍøÒ³´úÂëÄ£Ðͼ°ÉúÃüÖÜÆÚ

µÚ4Õ  ASP.NETµÄÍøÒ³´úÂëÄ£Ðͼ°ÉúÃüÖÜÆÚ
´Ó±¾Õ¿ªÊ¼£¬¾Í½øÈëÁËASP.NETÓ¦ÓóÌÐò¿ª·¢µÄÊÀ½ç¡£ÔÚÁ˽âÁËC#µÄ½á¹¹£¬ÒÔ¼°ÃæÏò¶ÔÏóµÄ¸ÅÄîºó£¬¾Í¿ÉÒÔ´ÓÃæÏò¶ÔÏóµÄ˼Ï뿪·¢ASP.NETÓ¦ÓóÌÐò¡£ÔÚASP.NETÖУ¬Äܹ»Ê¹ÓÃÃæÏò¶ÔÏóµÄ˼ÏëºÍÈí¼þ¿ª·¢ÖеÄһЩ˼Ï룬ÀýÈç·â×°¡¢ÅÉÉú¡¢¼Ì³ÐÒÔ¼°¸ß¼¶µÄÉè¼ÆģʽµÈ¡£±¾ÕÂÊ×ÏȽéÉÜASP.NETÖÐ×îÖ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ