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

ASP.NET vs. PHP£¬Äĸö¸ü¿ì£¿


ASP.NET vs. PHP£¬Äĸö¸ü¿ì£¿
http://www.infoq.com/cn/news/2009/09/aspnet-php-benchmark
×÷Õß ÕÔ劼 ·¢²¼ÓÚ 2009Äê9ÔÂ15ÈÕ ÉÏÎç5ʱ33·Ö
ÉçÇø .NET Ö÷Ìâ ÐÔÄܺͿÉÉìËõÐÔ ±êÇ© PHP, ASP.NET
½áÂÛ£º
ÎÒÃÇ¿ÉÒÔÕâôÈÏΪ£¬¶ÔÓÚ´¿´âµÄPHPÖ´ÐÐÐÔÄÜÀ´Ëµ£¬LinuxºÍWindowsÏà²îÎÞ¼¸£¬Õâ²»»á³ÉΪѡÔñLinux»òWindows×÷Ϊ²¿Êðƽ̨µÄ¾ö¶¨ÐÔÒòËØ¡£
Èç¹ûÄãÔÚ¹¹½¨Ò»¸öÓ¦ÓóÌÐò£¬ÄÇôPostgreSQL¿ÉÄÜÊǸüºÃµÄÑ¡Ôñ¡£ÒòΪËüÔÚÁ½¸öƽ̨ÉϵıíÏÖ¶¼ºÜÓÅÐã¡£
Èç¹ûÄãµÄÓ¦ÓóÌÐò±ØÐëʹÓÃMySQL£¬ÄÇôѡÔñWindows¾ÍÐèÒªÔçЩ¼Æ»®À©Õ¹ÐÔÎÊÌâÁË£¨¸öÈËÈÏΪSun²»Ì«¿ÉÄÜΪWindowsÓÅ»¯MySQLµÄÐÔÄÜ£©¡£
PHPµÄµÚÒ»¸ö°æ±¾µÄSQL ServerÇý¶¯³ÌÐòÒª±ÈMySQL»òPostpreSQLÒªÂýһЩ£¬µ«ÕâÓ¦¸Ã²»»á³ÉΪÎÊÌâ¡£µÚ¶þ¸ö°æ±¾µÄÇý¶¯Æ÷ÕýÔÚ¿ª·¢Ö®ÖУ¬Ëü»á´øÀ´ÐÔÄÜÌáÉý¡£
----»ð÷è÷ë¸öÈ˾õµÃ²»¸ÃÓûº´æÀ´±È£¬»º´æµÄ¶¼ÊǾ²Ì¬Ò³Ã棬ÔÚ´óÁ¿ÍøÕ¾·ÃÎÊÏÂÓÐÓ㬵«ÊDZȽ϶¯Ì¬ÔËËãËٶȱȻº´æûÓÐÒâÒåµÄ
ÉϸöÔÂJoe StagnerÔÚ²©¿ÍÉÏ·¢±íÁËһϵÁÐÎÄÕ±ȽÏÁËPHPºÍASP.NETµÄÖ´ÐÐÐÔÄÜ£¬ÒýÆðÁËÀ´×ÔË«·½³ÌÐòÔ±µÄ´óÁ¿»ØÓ¦¡£Joe±íʾ£¬Ëû»á½«ÕâÑùµÄ²âÊÔ³ÖÐøÏÂÈ¥£¬²¢Ñ°Çó¸üΪºÏÊʵķ½Ê½£¬ÒÔ»ñµÃ¶Ôʵ¼ÊÏîÄ¿À´Ëµ¾¡¿ÉÄÜÓвο¼¼ÛÖµµÄ½áÂÛ¡£
Joe±íʾ£º
Ò»°ãÀ´Ëµ£¬×÷ÐÔÄܲâÊÔµÄÄ¿µÄÊÇÒª³¢ÊÔÖ¤Ã÷Ò»·½±ÈÁîÒ»·½Òª¿ì¡£ÎÒÊܹÍÓÚ΢Èí£¬Í¬Ê±±àдPHPºÍASP.NET´úÂë¡£ÎÒÔÚ.NET³öÏÖ֮ǰ¾ÍÔÚʹÓÃPHP£¬Á½¸ö¶«Î÷ÎÒ¶¼ºÜϲ»¶¡£
ËùÒÔ£¬ÎÒºÜÄÑ˵³öÄĸö¸üºÃ¡£µ±ÎÒ˵PHPºÃ»°Ê±£¬ÎÒµÄ΢ÈíͬÊÂÃÇ»áдÐÅÀ´ÅúÆÀÎÒ£¬¶øµ±ÎÒ·¢±íÇãÏòÓÚASP.NETµÄÑÔÂÛʱ£¬ÎÒµÄPHPÅóÓÑÃÇ»á˵ÎÒÊÇ΢ÈíµÄÍС£
ÎÒ½øÐÐÕâ¸ö²âÊÔÊÇÒòΪÿ¸öÈ˶¼¶ÔPHPµÄÐÔÄÜÓÐ×Ô¼ºµÄ¿´·¨£¨Windows vs. Linux & 5.2 vs. 5.3£©£¬È´Ã»ÈËÄܸø³öÃ÷È·µÄÊý¾Ý¡£
¸ù¾ÝJoeµÄÃèÊö£¬²âÊÔ»·¾³ÈçÏ£º
ËùÓеIJâÊÔ¶¼ÔÚͬһ̨»úÆ÷ÉÏÔËÐУ¨ÓµÓÐ4GÄÚ´æºÍ60G 7200תӲÅ̵ÄToshiba Tecra M5£©¡£
Ubuntu 9ºÍWindows Server 2008±ê×¼°æ·Ö±ð°²×°ÓÚ¶ÀÁ¢£¨µ«Ïàͬ£©µÄÓ²ÅÌÖС£
LinuxʹÓÃApache2£¬WindowsʹÓÃIIS 7×÷Ϊ¸÷×ÔµÄWeb·þÎñÆ÷¡£
Ë«·½µÄ²Ù×÷ϵͳ¶¼½øÐÐÁËÍêÕûµÄpatch»òÉý¼¶¡£
Ë«·½µÄϵͳºÍÔËÐÐʱ¶¼Ã»ÓнøÐжîÍâµÄÐÔÄÜÔöÇ¿¡£
´ÓʵÑé½á¹ûÉÏ¿´£¬PHPÔÚLinuxºÍWindowsµÄÖ´ÐÐÐÔÄܸ÷ÓÐǧÇ
´¿´âµÄÓï¾äÖ´ÐÐÔÚWindowsÉϱíÏÖ¸üºÃ¡£
º¯Êýµ÷ÓÃÔÚWindowsÉϸü¿ì¡£
¶ÔÏóµÄ´´½¨ºÍ·ÃÎÊ£¬¶ÔÓÚPHP 5.2À´ËµÔÚLinuxÉϸü¿ì£¬µ«ÊǶÔÓÚPHP 5.3À´ËµÔòÊÇWindows¸ü¿ì¡£
Àà¿âµ÷ÓÃÔ


Ïà¹ØÎĵµ£º

asp.netÓÃurlÖØдURLReWriterʵÏÖÈÎÒâ¶þ¼¶ÓòÃû

ºÃ¾ÃûÓÐд¼¼ÊõÎÄÕÂ,Èç¹û´ó¼Ò¿´²»Ã÷°×,¾Í¶à¿´¼¸Æª,º¹,»òÕß,ÔÚÎÄÕµĺóÃæ»Ø¸´(ÕâÊÇ×îÓÐЧµÄ°ì·¨),ÎһᾡÁ¦°ïÖú´ó¼Ò½â´ðÒÉ»ó.
À´ÕÒÕâƪÎÄÕµÄ,Ó¦¸Ã¶¼ÖªµÀʲô½Ð¶þ¼¶ÓòÃû°É,·Ï»°¾Í²»ËµÁË.µ«ÊÇÌÖÂÛÇ°,ÏÈÒªÃ÷°×Ò»¸ö˼ÏëÎÊÌâ.
ºÜ¶àÅóÓÑÒ»Ö±¿¼ÂDz»Çå(ÎÒÇ°¼¸ÌìÒ²Ò»Ö±¸ã²»Ã÷°×)µÄÎÊÌâÊÇ,ÎÒ¼üÈëÒ»¸öµØÖ·ºó,ÔõôÕâ¸öurl¾Í±»ÖØдÁË?
......

ASP.NETÖдúÂëÄÚǶºÍ´úÂëºóÖõÄÇø±ðÓëʵÏÖ·½Ê½

1.´úÂëºóÖÃ
   ´úÂëºóÖÃÊÇ΢ÈíµÄÒ»Ïî¼¼Êõ£¬Ò²ÊÇÎÒÃDZàдASP.NET³£ÓõıàÂ뷽ʽ¡£¾ßÌ巽ʽ¾ÍÏñÒ³ÃæÎļþ(.aspx)ºÍ´úÂëÎļþ(.cs)Á½¸öÎļþÏ໥¹ØÁª
   Ëù¹¹³ÉµÄÒ³Ãæ¡£Ò»±ßÇé¿öÏ£¬.aspxÎļþÖÐûÓдúÂë¡¢Ö»ÓпռäºÍHTML´úÂ룬¶ø.csÎļþÖбàдÏà¹ØµÄ´úÂë²Ù×÷¡£
   ÕâÑù×öµÄºÃ´¦¾ÍÊÇ£ºÊ¹´úÂëÓëÒ³ ......

asp.netÄ£°åÁÐ Command ÃüÁî Ó¦ÓÃSelectedRowStyle

ÔÚgridviewÖÐ
 <asp:GridView ID="GridView1"   runat="server" AutoGenerateColumns="False">
 <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
<asp:TemplateField HeaderText="Remove">
        &nbs ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ