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

ASP.NET

Îå¡¢ASP.NET Web ·þÎñÆ÷¿Ø¼þºÍä¯ÀÀÆ÷¹¦ÄÜ
      ²»Í¬µÄä¯ÀÀÆ÷ºÍÏàͬä¯ÀÀÆ÷µÄ²»Í¬°æ±¾Ö§³Ö²»Í¬µÄ¹¦ÄÜ¡£ASP.NET ·þÎñÆ÷¿Ø¼þ»á×Ô¶¯È·¶¨·¢³öÒ³ÃæÇëÇóµÄä¯ÀÀÆ÷£¬²¢Îª¸Ãä¯ÀÀÆ÷³ÊÏÖÊʵ±µÄ±ê¼Ç¡£µ«ÊÇ£¬²¿·Ö¿Ø¼þ¹¦ÄÜÎÞ·¨ÔڽϵͰ汾µÄä¯ÀÀÆ÷ÉϳÊÏÖ£¬Òò´ËÐèÒªÔÚ¾¡¿ÉÄܶàµÄä¯ÀÀÆ÷ÀàÐÍÉϲ鿴ҳµÄÊä³ö£¬ÒÔÈ·±£Ò³ÒÔÔ¤ÆÚ·½Ê½³ÊÏÖÔÚËùÓÐä¯ÀÀÆ÷ÖС£
 
1¡¢ä¯ÀÀÆ÷ÀàÐ͵Ä×Ô¶¯¼ì²â
ĬÈÏÇé¿öÏ£¬ASP.NET Ò³¿ò¼Ü¿ÉÒÔ¶ÁÈ¡ÇëÇóÆÚ¼ä´Óä¯ÀÀÆ÷´«µÝµ½·þÎñÆ÷µÄÓû§´úÀíÐÅÏ¢£¬´Ó¶øÈ·¶¨ä¯ÀÀÆ÷µÄ¹¦ÄÜ¡££¨´ËÐÅÏ¢¿ÉÓÃ×÷ HttpRequest ¶ÔÏóµÄ UserAgent ÊôÐÔ¡££©Ò³Ãæ»á¸ù¾ÝÅäÖÃÎļþºÍä¯ÀÀÆ÷¶¨ÒåÎļþÖеĴúÀíÏîÀ´Æ¥ÅäÓû§´úÀíÐÅÏ¢¡£
      ˵Ã÷£ºÅäÖÃÎļþ (.config) µÄ browserCaps ½ÚÔÚ .NET Framework 2.0 °æÖÐÒѱ»·ñ¾ö¡£ÎªÁËʵÏÖÏòºó¼æÈÝÐÔ£¬Èç¹û±¾½ÚÖеÄÅäÖÃÉèÖÃÊÇÔÚÓ¦ÓóÌÐò¼¶±ðÉèÖõģ¬ÔòÕâЩÉèÖý«ÈÔÈ»ÓÐЧ£¬µ«»áÓëä¯ÀÀÆ÷¶¨ÒåÎļþ (.browser) Öаüº¬µÄÐÅÏ¢ºÏ²¢µ½Ò»Æð¡£ä¯ÀÀÆ÷¶¨ÒåÎļþλÓÚ¼ÆËã»ú¼¶±ðµÄ %SystemRoot%\Microsoft.NET\Framework\°æ±¾ºÅ\CONFIG\Browsers Îļþ¼ÐÒÔ¼°ÈκÎÏÖÓÐÓ¦ÓóÌÐò¼¶±ðµÄ App_Browser Îļþ¼ÐÖС£
      µ±Ò³²éÕÒµ½µ±Ç°Óû§´úÀíÐÅÏ¢ºÍÎļþÖÐÁгöµÄÓû§´úÀíÖ®¼äµÄÆ¥ÅäÏîʱ£¬Ëü¿ÉÒÔ¶ÁÈ¡ÏàÓ¦µÄä¯ÀÀÆ÷¹¦ÄÜ£¬ÀýÈ磬¸Ãä¯ÀÀÆ÷ÊÇ·ñÖ§³Ö½Å±¾×«Ð´¡¢Ñùʽ¡¢¿ò¼ÜµÈµÈ¡£Ò³ÃæÉϵĿؼþ»á¸ù¾ÝÕâЩ¹¦ÄÜʹÓÃÊʵ±µÄ±ê¼Ç£¨XHTML¡¢HTML 3.2£¬µÈµÈ£©À´³ÊÏÖ Web ¿Ø¼þ¡£Èç¹û ASP.NET ÔÚ³ÊÏÖ HTML ÔªËØ£¬Ëü¾Í¿ÉÒÔÈ·¶¨ÊdzÊÏÖ½Ïа汾£¨·ûºÏ¼¶ÁªÑùʽ±í£©µÄ HTML ÔªËØ»¹ÊdzÊÏÖÔçÆÚ°æ±¾£¨²»·ûºÏ¼¶ÁªÑùʽ±í£©µÄ HTML ÔªËØ¡£¶ÔÓھɰæä¯ÀÀÆ÷£¬ASP.NET ½«Ê¹ÓÃÔªËØ£¨ÀýÈ磬font ÔªËØ£©¶ø²»ÊÇ CSS ÑùʽÀ´³ÊÏÖ¸ñʽÉèÖÃÐÅÏ¢¡£
 
2¡¢ÖØдä¯ÀÀÆ÷ÀàÐͼì²â
Èç¹ûÒªÏÔʽ¿ØÖÆÒ³ÃæµÄ³ÊÏÖ·½Ê½£¬¶ø²»ÊÇÒÀÀµä¯ÀÀÆ÷×Ô¶¯¼ì²â£¬Ôò¿ÉÒÔÉèÖÃÒ³ÃæµÄ ClientTarget ÊôÐÔ (Property)¡£¿ÉÒÔͨ¹ýÉùÃ÷·½Ê½½«¸ÃÊôÐÔ (Property) ÉèÖÃΪ¸ÃÒ³µÄ @ Page Ö¸ÁîµÄÒ»¸öÊôÐÔ (Attribute)£¬Ò²¿ÉÒÔͨ¹ý±à³Ì·½Ê½½øÐдËÏîÉèÖá£
ClientTarget ÊôÐÔµÄÖµÊÇÄúÏëÒªÓÃÀ´³ÊÏÖÒ³µÄä¯ÀÀÆ÷ÀàÐ͵ıðÃû¡£ÀýÈ磬ÈôҪǿÖÆÒ³Ãæͨ¹ý Microsoft Internet Explorer 6.0 À´³ÊÏÖ£¬Ôò¿ÉÒÔʹÓñðÃû uplevel¡£´Ë±ðÃû±ØÐëÔÚÅäÖÃÎļþµÄ clientTarget ½ÚÖж¨Òå¡£Ô¤¶¨ÒåµÄĬÈϱðÃûÓÐ ie5¡¢ie4¡¢uplevel ºÍ downlevel¡£
ͨ¹ýÖ¸¶¨±ðÃû downlevel£¬¿ÉÒÔÇ¿ÖÆÒ³Ãæ³Ê


Ïà¹ØÎĵµ£º

ASP.NET


      ASP.NET ÅäÖÃÎļþ¹¦ÄÜÔÊÐíÄú´æ´¢¼òµ¥£¨±êÁ¿£©Öµ¡¢¼¯ºÏºÍÆäËû¸´ÔÓÀàÐÍ£¬ÒÔ¼°Óû§¶¨ÒåµÄÀàÐÍ¡£
 
1¡¢ÊôÐÔ¶¨ÒåÐÅÏ¢
ÔÚÅäÖÃÎļþÖж¨ÒåÊôÐÔʱ£¬Ó¦Ö¸¶¨½«ÓÃÓÚÒýÓøÃÊôÐÔµÄÃû³Æ¡£ÀýÈ磬Èç¹ûÒª´æ´¢ÓÊÕþ±àÂ룬Ôò¿ÉÒÔ½«ÊôÐÔÃüÃûΪ PostalCode£¬È»ºó¿ÉÒÔ»ñÈ¡ÊôÐÔÖµ²¢½«ÆäÉèÖÃΪ Profile.Pos ......

ÔõôÅжÏÒ»¸öASP.NETµÄ³ÌÐòÊÇ·ñÈý²ã¼Ü¹¹

 Èý²ã¼Ü¹¹(3-tier application) ͨ³£ÒâÒåÉϵÄÈý²ã¼Ü¹¹¾ÍÊǽ«Õû¸öÒµÎñÓ¦Óû®·ÖΪ£º±íÏֲ㣨UI£©¡¢ÒµÎñÂß¼­²ã£¨BLL£©¡¢Êý¾Ý·ÃÎʲ㣨DAL£©¡£Çø·Ö²ã´ÎµÄÄ¿µÄ¼´ÎªÁË“¸ßÄÚ¾Û£¬µÍñîºÏ”µÄ˼Ïë¡£
  1¡¢±íÏֲ㣨UI£©£ºÍ¨Ë×½²¾ÍÊÇÕ¹ÏÖ¸øÓû§µÄ½çÃ棬¼´Óû§ÔÚʹÓÃÒ»¸öϵͳµÄʱºòËûµÄËù¼ûËùµÃ¡£
  2¡¢ÒµÎñ ......

asp.netÖÐÉÏ´«´óÎļþ

Ö±½ÓÔÚASP.netÖÐÉÏ´«´óÎļþµÄ·½·¨£®
·½·¨Ò»£ºÔÚweb.configÖÐÌí¼Ó<httpRuntime maxRequestLength="100000" executionTimeout="45"/>
·½·¨¶þ£ºÐ޸ģɣɣÓÅäÖÃÎļþwindows->system32->inetsrv->metaBase.XML
·½·¨Èý£º
1£®   httpHandler or HttpModule
a.ÔÚASP.net½ø³Ì´¦ÀírequestÇëÇó֮ǰ½Ø»ñ ......

ASP.NET ץȡÍøÒ³Ô´Îļþ

×öÏîÄ¿·ÖÏíµÄʱºòҪץȡÍøÒ³ÀïÃæµÄͼƬ£¬¼°ÊÓƵ£¬±êÍ·¡£µ±È»ÒªÈ¡µ½ÕâЩ¶«Î÷֮ǰ£¬±ØÐë°ÑÔ´Îļþ¶Á³öÀ´
£¬Äõ½Ô´ÎļþÖ®ºó¾ÍÓÃJSÕýÔòȡͼƬºÍÊÓƵÁË£¨JSÕýÔò»¹²»ÍêÃÀ£¬ÏȲ»Ìù£©
C#ץȡÍøÒ³Ô´Îļþ´úÂëÈçÏ£º
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web; ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ