w3pop.com :: ÍøÂçѧԺ :: ASP.NET :: ASP ºÍ ASP.NET Ö®¼äµÄÇø±ð
ASP.NET has better language support, a large set of new controls and XML based components, and better user authentication.
ASP.NETÓиüºÃµÄÓïÑÔÖ§³Ö£¬¸üΪÅÓ´óµÄпؼþȺÒÔ¼°»ùÓÚXMLµÄ×齨£¬»¹Óиü³öÉ«µÄÓû§¼ø¶¨¡£
ASP.NET provides increased performance by running compiled code.
ASP.NETͨ¹ýÔËÐбàÒë´úÂëÀ´Ìá¸ßÖ´ÐÐЧÂÊ
ASP.NET code is not fully backward compatible with ASP.
ASP.NET´úÂë²¢²»ÍêÈ«Ïòºó¼æÈÝÓÚASP
ASP.NET uses the new ADO.NET.
ASP.NETʹÓÃеÄADO.NET
ASP.NET supports full Visual Basic, not VBScript.
ASP.NET Ö§³ÖÍêÕûµÄ VB¶ø²»ÊÇVBscript
ASP.NET supports C# (C sharp) and C++.
ASP.NET Ö§³ÖC#ºÍC++
ASP.NET supports JScript as before.
ASP.NET ¸úÒÔǰһÑùÖ§³ÖJScript
ASP.NET contains a large set of HTML controls. Almost all HTML elements on a page can be defined as ASP.NET control objects that can be controlled by scripts.
ASP.NET °üº¬ÁË´óÁ¿µÄHTML¿Ø¼þ¼¯¡£´ó¶àÊýÔÚÒ³ÃæÉϵÄHTMLÔªËØ¿ÉÒÔ¶¨ÒåΪASP.NET¿Ø¼þ¶ÔÏó£¬ÕâЩ¶ÔÏó¿ÉÒÔͨ¹ý½Å±¾½øÐпØÖÆ¡£
ASP.NET also contains a new set of object oriented input controls, like programmable list boxes and validation controls.
ASP.NET »¹°üº¬ÁËÒ»×éеÄinput¿Ø¼þµ¼Ïò¶ÔÏó£¬Ïñ¿É±àдѡ¿òÁбíÒÔ¼°ÑéÖ¤¿Ø¼þ¡£
A new data grid control supports sorting, data paging, and everything you expect from a dataset control.
Ò»¸öеÄÊý¾ÝÀ¸¿Ø¼þÖ§³ÖÅÅÐò£¬Êý¾Ý·ÖÒ³£¬ÒÔ¼°ËùÓÐÄãËùÆÚÍûÄÜÔÚÊý¾Ý¼¯ÖÐÏë×öµÄÊ¡£
All ASP.NET objects on a Web page can expose events that can be processed by ASP.NET code.
ËùÓÐÔÚWEB Ò³ÉϵÄASP.NET¶ÔÏó¿ÉÒԽҶʼþÒÔ±»ÓÃÀ´×÷Ϊ¿É´¦ÀíµÄASP.NET´úÂë¡£
Load, Click and Change events handled by code makes coding much simpler and much better organized.
¼ÓÔØ£¬µã»÷ºÍ¸Ä±äÕâЩʼþͨ¹ý¸üΪ×éÖ¯ÓÐÐòµÄ¼òµ¥´úÂëÀ´½øÐд¦Àí¡£
ASP.NET components are heavily based on XML. Like the new AD Rotator, that uses XML to store advertisement information and configuration.
ASP.NET ×é¼þȺÑÏÃܵĻùÓÚXML¡£±ÈÈçÏñÈ«ÐÂµÄ¹ã¸æ»Ø×ªÆ÷£¬¾ÍÊÇʹÓÃXMLÀ´´æ·Å¹ã¸æµÄÐÅÏ¢ÒÔ¼°ÉèÖÃÐÅÏ¢¡£
ASP.NET supports forms-based user authentication, including cookie management and automatic redirecting of unauthorized logins.
ASP.NET Ö§³Ö»ùÓÚ±íµ¥µÄÓû§Éí·Ý¼ø¶¨£¬ÆäÖаüÀ¨cookieµÄ¹ÜÀíÒÔ¼°Î´¾ÈϿɵĵǽ×Ô¶¯×ªÏò
(You can still do your custom login page and custom user checking).
ÄãÒÀÈ»¿ÉÒÔ×Ô¶¨ÒåµÇÂ½Ò³ÃæÒÔ¼°×Ô¶¨ÒåµÄÓû§¼ì²é
ASP .NET allows for user accounts and roles, to give each user (with a given role) access to different server code and executables.
ASP.NET ÔÊÐí¼ÓÈëÓû§ÕÊ»§ÒÔ¼°½ÇÉ«ÈÎÎñ£¬¸øÃ¿¸öÓû§£¨Í¨¹ý·ÖÅä½ÇÉ«ÈÎÎñ£©À´·ÃÎʲ»Í¬µÄ·þÎñÆ÷´úÂëºÍ¿ÉÖ´ÐеĴúÂë¡£
Much has been done with ASP.NET to provide greater scalability.
ASP.NET ÔÚÌṩ¸ü³öÉ«µÄ¿ÉÉìËõÐÔ·½ÃæÏÂ×㹤·ò¡£
Server to server communication has been greatly enhanced, making it possible to scale an application over several servers. One example of this is the ability to run XML parsers, XSL transformations and even resource hungry session objects on other servers.
ÔöÇ¿ÁË·þÎñÆ÷Óë·þÎñÆ÷Ö®¼äµÄÁªÍ¨£¬Ê¹µÃÍêÈ«Äܹ»ÔÚÊý̨·þÎñÆ÷ÉÏÓ¦ÓôóÐÍÓ¦ÓóÌÐò¡£Õâ·½ÃæµÄÒ»¸ö°¸Àý¾ÍÊÇÄܹ»ÔËÐÐXML½âÎöÆ÷£¬XSLת»»Æ÷ÉõÖÁÊÇÆäËû·þÎñÆ÷ÉϵÄhungry session×ÊÔ´¡£
The first request for an ASP.NET page on the server will compile the ASP.NET code and keep a cached copy in memory. The result of this is greatly increased performance.
µÚÒ»´ÎÇëÇó·þÎñÆ÷ÉϵÄASP.NETÒ³ÃæÊ±½«»á¶ÔASP.NET´úÂë½øÐбàÒë²¢½«Æä²úÉúµÄ»º´æ¿½±´µ½ÄÚ´æÖС£ÕâÑù×öµÄ½á¹û¾ÍÊÇÄܹ»´ó´óÌá¸ßÖ´ÐÐËÙ¶È¡£
Configuration of ASP.NET is done with plain text files.
ÔÚÆÕͨµÄÎı¾ÎļþÉϾͿÉÅäÖÃASP.NET
Configuration files can be uploaded or changed while the application is running. No need to restart the server. No more metabase or registry puzzle.
ÔÚ³ÌÐòÔËÐеÄʱºòÅäÖÃÎļþ¿ÉÒÔÉÏÔØ»òÊǸı䡣¶ø²»ÐèÒªÖØÐÂÆô¶¯·þÎñÆ÷¡£²»ÔÙ»áÓÐmetabaseºÍµÇ¼ÇÎÊÌâ
No more server restart to deploy or replace compiled code. ASP.NET simply redirects all new requests to the new code.
·þÎñÆ÷²»ÔÙÐèҪͨ¹ýÖØÆôÀ´½øÐв¿Êð»òÊÇÈ¡´ú±àÒëºóµÄ´úÂë¡£ASP.NET »á˳Æä×ÔÈ»µØ½«ÐµÄÇëÇóתÏòµ½ÐµĴúÂë
ASP.NET is not fully compatible with earlier versions of ASP, so most of the old ASP code will need some changes to run under ASP.NET.
ASP.NET ²»ÄÜÍêÈ«ºÍÔçÆÚ°æ±¾µÄASP½øÐмæÈÝ¡£Òò´Ë´ó¶àÊýÀϵÄASP´úÂ뽫ͨ¹ýһЩ¸Ä±ä²ÅÄÜÔÚASP.NETÏÂÔËÐС£
To overcome this problem, ASP.NET uses a new file extension ".aspx". This will make ASP.NET applications able to run side by side with standard ASP applications on the same server.
Òª½â¾öÕâ¸öÎÊÌâ¡£ASP.NET ʹÓÃÁËеÄÎļþÍØÕ¹Ãû“.aspx” ÕâʹASP.NET³ÌÐòÄܹ»ÓëASP³ÌÐòÔËÐÐÔÚͬһ̨·þÎñÆ÷ÉÏ¡£