Apache run asp.net==>2.0ÒÔÉϵİ汾
ÒÔÏÂÄÚÈÝ,´ÔÍøÉÏCOPY¹ýÀ´µÄ...
ApacheÊÇÄ¿Ç°¹ã·ºÊ¹ÓõÄÒ»ÖÖÍøÂç·þÎñÆ÷³ÌÐò£¬²»½öÔÚUNIX/LINUXƽ̨Éϱ»´óÁ¿Ê¹Ó㬶øÇÒÔÚWindowsƽ̨ÉÏÒ²ÓÐÐí¶àÕ¾µã·ÅÆúÁËIIS¶øתÏòApache¡£.NETÊÇ΢ÈíÍƳöµÄ¹¦ÄÜÇ¿´óµÄ¿ª·¢¼¼Êõ£¬ÆäÄ¿±ê¾ÍÊÇÓëJava¿¹ºâ¡£ASP.NET·Ç³£ÊʺÏÓÚÖÐСÆóÒµµÄWebÓ¦Óã¬ÆäÐÔÄܽÏASP3.0ÓÐÁ˼«´óµÄÌá¸ß¡£ÏÂÃæ¾Í½éÉÜÈÃApacheÖ§³ÖASP.NETµÄ°ì·¨¡£
Ê×ÏÈ£¬±ØÐëÒªÓÐWindows»·¾³ºÍ.NET FrameworkµÄÖ§³Ö¡£´ËÍ⻹½¨Òé°²×°.NET¿ª·¢¹¤¾ßÈç.NET Framework
SDK»òÕßVisualStudio.NET¡£ÐèҪעÒâµÄÊÇWindowsµÄ°æ±¾Ó¦Îª2000¡¢2003ºÍXP¡£Win9XϵÁв»ÄÜ°²×°.NET
Framework¡£È»ºóÐèÒª°²×°Apache¡£Ó¦¸ÃʹÓÃWin32ƽ̨µÄApache£¬°æ±¾2.0ÒÔÉÏ¡£ÏÂÔصØÖ·£ºhttp://labs.renren.com/apache-mirror/httpd/binaries/win32/httpd-2.2.15-win32-x86-no_ssl.msi
ÏÂÔز¢°²×°Apache»·¾³ÏµÄASP.NETÄ£¿é¡£ÏÂÔصØÖ·£ºhttp://downloads.sourceforge.net/project/mod-aspdotnet/mod_aspdotnet/2.x.0.2006/mod_aspdotnet-2.2.0.2006-setup-r2.msi
ÏÂÔØÍê³ÉºóË«»÷´ò¿ª£¬Ò»Â·Next¼´¿É°²×°Íê³É¡£×¢£ºis not a valid path to an installed instance of
apache£¬Óöµ½Õâ¸ö´íÎó£¬ËµÃ÷ÄãµÄapacheºÍapacheÄ£¿é²»Æ¥Åä¡£
ΪÁ˱ãÓÚ¹ÜÀí£¬ÎÒÃÇÔÚhtdocsĿ¼ÏÂн¨Ò»¸öactiveĿ¼£¬×¨ÃÅ´æ·Å.aspxÎļþ¡£ÏÖÔÚÐèÒª¶Ôhttpd.confÎļþ×÷Ò»¶¨ÅäÖã¬ÔÚÎļþĩβÌí¼Ó£º
#asp.net
LoadModule aspdotnet_module
"modules/mod_aspdotnet.so"
AddHandler asp.net asax ascx ashx asmx aspx axd
config cs csproj licx rem resources resx soap vb vbproj vsdisco
webinfo
<IfModule mod_aspdotnet.cpp>
# Mount the ASP.NET example
application
AspNetMount /active "C:/Program Files/Apache Software
Foundation/Apache2.2/htdocs/active"
# Map all requests for /active to
the application files
Alias /active "C:/Program
Files/Apache Software Foundation/Apache2.2/htdocs/active"
# Allow
asp.net scripts to be executed in the active example
<Directory "C:/Program Files/Apache Software
Foundation/Apache2.2/htdocs/active">
Options FollowSymlinks
ExecCGI
Order allow,deny
Allow from all
DirectoryIndex Default.htm
Default.aspx
</Directory>
# For all virtual ASP.NET web
Ïà¹ØÎĵµ£º
ÎÒÏë×öÒ»¸ö¶àÖ¸±ê¶¯Ì¬²éѯ£¬ÇëÎÊÄÄλÐÖµÜ×ö¹ý£¬°ï¸ö棡¾ßÌåÒªÇóÊÇ:ÎÒ¿ÉÒÔËæÒâÑ¡ÔñÊý¾Ý¿â±íÖеÄÈκÎÒ»¸ö»ò¶à¸ö×ֶΣ¬È»ºó°ÑËûÃDzéѯ³öÀ´£¡ÎÒ»á×öµ¥Ö¸±í²éѯµÄ£¬µ«ÏÖÔÚ¹¦ÄÜÒªÒªÇó¶àÖ¸±ê¶¯Ì¬²éѯ£¡»áµÄ°ï¸öæ°¡@£¡¸Ðл֮ÖÁ£¡
ÀýÈçÎÒÏë²éÊý¾Ý¿â±íÖÐµÄ Óû§±àºÅ ÐÕÃû »òÕßÓû§±àºÅ ÐÕÃû Ê¡·Ý ÊÕÈë ²¢°Ñ¶ÔÓ¦µ ......
AJAXµÄ·ÖÒ³£¬ÊµÏÖ˼·ÊÇ£º
¡¡¡¡1.ÀûÓÃ$.fn.extendÔÚJQuery¿ò¼ÜÏÂÀ©Õ¹pagerÀà
¡¡¡¡2.½«»ñÈ¡¼Ç¼×ÜÊýÓëÏàÓ¦Ò³¼Ç¼µÄºǫ́·½·¨£¬Ð´Ôڼ̳Ð×ÔIHttpHandlerÀàµÄHandler.ashx.csÀ࣬µ±È»Êµ¼ÊÉÏÓÃaspx.csÎļþдºǫ́·½·¨Ò²Ã»ÎÊÌ⣬µ«ÓÉÓÚ.ashx.csÎļþÎÞÐè´¦ÀíÒ³ÃæÖî¶àʼþÒò¶øЧÂʸü¸ß¡£
¡¡¡¡3.ÔÚ³ÊÏÖÒ³ÃæÉϼÓÔØpagerÀà
¡¡ ......
Page Ö´ÐÐÖн«°´ÕÕÈçÏÂ˳Ðò¼¤»îʼþ£º
Page.PreInit
Page.Init
Page.InitComplite
Page.PreLoad
Page.Load
Page.LoadComplete
Page.PreRender
Page.PreRenderComplete
Èç¹ûÒ³Ãæ´ÓÁîÒ»¸öÒ³Ãæ¼Ì³Ð£¬ÈçBasePage:System.Web.UI.Page£¬ÔÚBasePageÖÐ×öÁËһЩÀ©Õ¹£¬ÈçȨÏÞ¼ì²é£¬¶øÆäËûÒ³Ãæ´ÓBasePage¼Ì³Ð£¬ÔòBasePageºÍ×î ......
ÒÔÇ°×ö.NET winformµÄʱºò£¬Ò»Ö±¶¼ÊÇÓà Console.WriteÏò¿ØÖÆ̨Êä³öÐÅÏ¢µÄ£¬Õâ´Î×öwebµÄʱºò£¬·¢ÏÖÕâ¸öÓï¾äÓò»ÁË¡£
²éÁËÒ»ÏÂ×ÊÁÏ£¬²Å·¢ÏÖweb³ÌÐòÖ´ÐÐʱ£¬ÊDZ»¸½¼Óµ½IIS½ø³ÌµÄÒ»¸öµ¥¶ÀµÄAppDomainÖеģ¬ËùÒÔ¾ÍËãÓÐÊä³öÒ²¿´µ½£¬ËùÒÔConsole.Writeµ÷ÊÔÐÅÏ¢ÎÞ·¨ÏÔʾ³öÀ´¡£
ÄÇô½â¾ö°ì·¨ÊÇ£¬ÓÃdebug´úÌ棺
System.Diagnostics ......
ÔÚ¿ª·¢ÐèÒªÓû§×¢²áºó²ÅÄÜʹÓÃÌṩµÄ¸÷ÏÄܵÄÓ¦ÓóÌÐòʱ£¬ÔÚÐÂÓû§Ìá½»×¢²áÐÅÏ¢ºó£¬½Ï³£¼ûµÄ×ö·¨ÊÇÓɳÌÐòÉú³ÉËæ»úÃÜÂ룬Ȼºó·¢ËÍÃÜÂëµ½Óû§×¢²áʱÌîдµÄµç×ÓÐÅÏ䣬Óû§ÔÙÓÃÊÕµ½µÄÃÜÂëÀ´¼¤»îÆäÕÊ»§¡£
ʵÏÖASP.NETÉú³ÉËæ»úÃÜÂ빦ÄÜÊǺÜÈÝÒ׵ģ¬ÏÂÃæµÄ´úÂë¸ø³öÁËÍêÕûµÄʵÏÖ·½·¨£º
publicstaticstringMakePassword(stringpw ......