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

ѧϰAsp.NetµÄһЩÎÊÌâ

¸Õ±ÏÒµ£¬×î½üÔÚ¸ã±ÏÒµÂÛÎÄ¡£
˵Æð±ÏÒµÂÛÎÄÎÒ¾ÍÍ·ÌÛ£¬ÎÒÃÇÈýÈËÒ»×飬±¾À´ÎÒÖ÷ÕÅÓÃC#д£¬Ì×ÓÃÒ»¸öÍâ¹úµÄÄ£ÐÍBalloonShopÔÚÏß¹ºÎïÍøÕ¾£¬C#ÊÇ×ÔѧµÄ¡£µ«ÊÇͬ×éµÄÒ»¸öͬѧVBѧµÃ²»´í£¬ÒªÓÃVB¡£ÎÒÏëÄãÒªÓÃVBдµÄ»°ÎÒÊDz»Ì«¶®£¬ÄÇÖ»ÄÜÄã×Ô¼ºÐ´ºÃÁË£¬ÎÒ×î¶àÒ²¾Í´î°ÑÊÖ¶øÒÑ£¬Ê¡ÐÄÁË£¬ºÎÀÖ¶ø²»ÎªÄØ£¡
×îºó×÷Æ·×ö³öÀ´»¹Ëã²»´í£¬¾ÍÊÇÖмä³öÁ˼¸µãÎÊÌâÎÒÏëÔÚÕâÀï˵һÏ£¬ÃâµÃºóÀ´µÄÈËÔÙ·¸´íÎó¡£
1¡¢×Ö·û´®µÄÎÊÌ⣺
´ó¼Ò¶¼ÖªµÀ£¬Á¬½Ó×Ö·û´®Ð´ÔÚwebconfigÀïÃæ±È½Ï·½±ã¡£ÎÒҪ˵µÄ¾ÍÊÇÔÚÁ¬½Ó×Ö·û´®ÀïÃæ×îºÃ¼ÓÉÏÒ»Ïattachdbfilename datadirectoryºóÃæдÉÏÊý¾Ý¿âÎļþµÄλÖã¬ÕâÑùÔÚÍøÕ¾·¢²¼µÄʱºò¾Í²»ÓÃÔÚmicrosoft sql server management studio ÀïÃ渽¼ÓÁË¡£ËùÒÔÒ²¾ÍÊÇ˵ûÓа²×°sql serverµÄÈËÓи£ÁË£¬Ö»Òª°²×°Ò»¸öIISºÍ.freamwork¾Í¿ÉÒÔÕý³£µ÷ÊÔÍøÕ¾ÁË¡£
2¡¢·ÃÎÊÔªÊý¾Ý¿âʧ°ÜµÄÎÊÌ⣺
ÒªÏëÔÚ·¢²¼µÄÍøÕ¾·ÃÎÊÊý¾Ý¿â¾Í±ØÐëÔÚsql server ÍâΧӦÓÃÅäÖÃÆ÷ÀïÃæ°ÑÔ¶³ÌÁ¬½Ó´ò¿ª£¬²»È»ÊÇÎÞ·¨·ÃÎʵġ£
3¡¢Óû§ÃûµÇ½ʧ°ÜµÄÎÊÌ⣺
ÔÚ·ÃÎÊÊý¾Ý¿âʱAsp.netÍøÕ¾»áÓÃÒ»¸öĬÈϵÄASpnetµÇ½Êý¾Ý¿â£¬µ«ÊÇÔÚÊý¾Ý¿âÖиù±¾Ã»ÓÐAsp.netÕâ¸öÓû§£¬ËùÒÔÎÒÃÇÒªÊÖ¶¯µØΪËüÌí¼ÓÕâ¸öÓû§¡£Ìí¼ÓµÄʱºò²»ÒªÍüÁËÓû§Ó³ÉäµÄÊý¾Ý¿â¹´Ñ¡¡£
4¡¢Óû§È¨ÏÞÎÊÌâ
µÇ½Éϲ»´ú±í¾Í½áÊøÁË£¬»¹ÒªÑ¡Ôñ¸ÃÓû§µÄȨÏÞ£¬²»È»Ò²»á±¨´íµÄ¡£Èç²»ÄܶÁ²»ÄÜдµÄÎÊÌâ¡£½â¾öµÄ·½·¨Ò²ºÜ¼òµ¥¡£¾ÍÊÇÔÚÄãÒªÁ¬½ÓµÄÊý¾ÝÉÏÓÒ¼üµ¥»÷Ñ¡ÔñȨÏÞ¡£ÔÚһЩÓõ½µÄȨÏÞÇ°´ò¹´¾ÍÐС£
ºÃÁË£¬ÎÒ˵µÄÕ⼸¸ö¶¼ÊÇÈÝÒ×·¸£¬¶øÇÒÒ²±È½ÏÈÝÒ×½â¾öµÄСÎÊÌâ¡£µ«Ô¸ÄãÃÇÒÔºó²»ÒªÔÙ·¸¾ÍÐÐÁË¡£


Ïà¹ØÎĵµ£º

asp.net ÉèÖóö´íÒ³

    <system.web> 
      <!--********³ö´íÒ³µÄÉ趨********-->
    <customErrors mode="On" defaultRedirect="~/Error.htm"> </customErrors> ......

ÈçºÎʹÓÃASP.NET Profile


Asp.NetÖÐÓÐÒ»Ì×ÓëÓû§Ïà¹ØÁªµÄÊôÐÔÉèÖ㬿ÉÒÔͨ¹ýÔÚWebConfigÀïÅäÖÃÀ´Ö±½ÓʹÓã¬ËûµÄ×÷ÓÃΪ
´æ´¢ºÍʹÓÃΨһÓëÓû§¶ÔÓ¦µÄÐÅÏ¢
Õ¹ÏÖ¸öÈË»¯°æ±¾µÄWebÓ¦ÓóÌÐò
Óû§µÄΨһÉí·Ý±êʶÔÚÔٴηÃÎÊʱʶ±ðÓû§
Asp.Net ProfileÌṩµÄ¸úÓû§Ïà¹ØµÄÀàÐͶ¼ÊÇÇ¿ÀàÐÍ
Ê×ÏÈÉú³ÉÊý¾Ý¿â½Å±¾£¬Ê¹ÓÃVisual Studio 2005 ÃüÁîÌáʾ£¬ÊäÈë ......

ASP.NET»ñÈ¡·þÎñÆ÷ÐÅÏ¢

"·þÎñÆ÷Ãû³Æ£º"+Server.MachineName;//·þÎñÆ÷Ãû³Æ 
                  "·þÎñÆ÷IPµØÖ·£º" + Request.ServerVariables["LOCAL_ADDR"];//·þÎñÆ÷IPµØÖ· 
          &nbs ......

asp.net mvc 2.0²¿Êð

IIS 7
IIS7×ÔÉíÓжÔMVCµÄÖ§³Ö£¬²¿Êð·½·¨Í¬ÆäËûweb application»ù±¾Ïàͬ£¬ÐèҪעÒâµÄÊÇ£¬mvc 2.0 applicationÔÚHandler MappingsÀïÃæ»áÓÐMvcHttpHandler£¬Èçͼ£º
ÎÒʹÓõÄÊÇ.net 4.0£¬ÎÒ¿´ÁËÆäËû.net 2.0 µÄweb appliationϵÄHandler Mappings¶¼Ã»ÓÐÕâ¸öhandler maping¡£
×¢Ò⣺.net 3.5ÒÔÏ£¨°üÀ¨£©µÄweb application p ......

ASP.NetÖÐ×Ô¶¨ÒåHttp´¦Àí¼°Ó¦ÓÃÖ®HttpModuleƪ

HttpHandlerʵÏÖÁËÀàËÆÓÚISAPI ExtentionµÄ¹¦ÄÜ£¬Ëû´¦ÀíÇëÇó(Request)µÄÐÅÏ¢ºÍ·¢ËÍÏìÓ¦(Response)¡£HttpHandler¹¦ÄܵÄʵÏÖͨ¹ýʵÏÖIHttpHandler½Ó¿ÚÀ´´ïµ½¡£¶øHttpModuleʵÏÖÁËÀàËÆÓÚISAPI FilterµÄ¹¦ÄÜ¡£
HttpModuleµÄʵÏÖ
HttpModulesʵÏÖÁËÀàËÆÓÚISAPI FilterµÄ¹¦ÄÜ£¬ÔÚ¿ª·¢ÉÏ£¬Í¨³£ÐèÒª¾­¹ýÒÔϲ½Ö裺
±àдһ¸öÀà£¬Ê ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ