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

ת ASP.Net »ñÈ¡ÎļþµÄ·¾¶

Ò»¡¢»ñÈ¡µ±Ç°ÎļþµÄ·¾¶
1.   System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName
     »ñÈ¡Ä£¿éµÄÍêÕû·¾¶£¬°üÀ¨ÎļþÃû¡£
2.   System.Environment.CurrentDirectory
     »ñÈ¡ºÍÉèÖõ±Ç°Ä¿Â¼(¸Ã½ø³Ì´ÓÖÐÆô¶¯µÄĿ¼)µÄÍêÈ«ÏÞ¶¨Ä¿Â¼¡£
3.   System.IO.Directory.GetCurrentDirectory()
     »ñÈ¡Ó¦ÓóÌÐòµÄµ±Ç°¹¤×÷Ŀ¼¡£Õâ¸ö²»Ò»¶¨ÊdzÌÐò´ÓÖÐÆô¶¯µÄĿ¼°¡£¬ÓпÉÄܳÌÐò·ÅÔÚC:\wwwÀï,Õâ¸öº¯ÊýÓпÉÄÜ·µ»ØC:\Documents and Settings\ZYB\,»òÕßC:\Program Files\Adobe\,ÓÐʱ²»Ò»¶¨·µ»Øʲô¶«¶«£¬ÕâÊÇÈκÎÓ¦ÓóÌÐò×îºóÒ»´Î²Ù×÷¹ýµÄĿ¼£¬±ÈÈçÄãÓÃWord´ò¿ªÁËE:\doc\my.docÕâ¸öÎÄ ¼þ£¬´ËʱִÐÐÕâ¸ö·½·¨¾Í·µ»ØÁËE:\docÁË¡£
4.  System.AppDomain.CurrentDomain.BaseDirectory
     »ñÈ¡³ÌÐòµÄ»ùĿ¼¡£
5.  System.AppDomain.CurrentDomain.SetupInformation.ApplicationBase
     »ñÈ¡ºÍÉèÖðüÀ¨¸ÃÓ¦ÓóÌÐòµÄĿ¼µÄÃû³Æ¡£
6.  System.Windows.Forms.Application.StartupPath
     »ñÈ¡Æô¶¯ÁËÓ¦ÓóÌÐòµÄ¿ÉÖ´ÐÐÎļþµÄ·¾¶¡£Ð§¹ûºÍ2¡¢5Ò»Ñù¡£Ö»ÊÇ5·µ»ØµÄ×Ö·û´®ºóÃæ¶àÁËÒ»¸ö"\"¶øÒÑ
7.  System.Windows.Forms.Application.ExecutablePath
     »ñÈ¡Æô¶¯ÁËÓ¦ÓóÌÐòµÄ¿ÉÖ´ÐÐÎļþµÄ·¾¶¼°ÎļþÃû£¬Ð§¹ûºÍ1Ò»Ñù¡£
¶þ¡¢²Ù×÷»·¾³±äÁ¿
ÀûÓÃSystem.Environment.GetEnvironmentVariable()·½·¨¿ÉÒԺܷ½±ãµØÈ¡µÃϵͳ»·¾³±äÁ¿£¬È磺
System.Environment.GetEnvironmentVariable("windir")¾Í¿ÉÒÔÈ¡µÃwindowsϵͳĿ¼µÄ·¾¶¡£
ÒÔÏÂÊÇһЩ³£ÓõĻ·¾³±äÁ¿È¡Öµ£º
System.Environment.GetEnvironmentVariable("windir");
System.Environment.GetEnvironmentVariable("INCLUDE");
System.Environment.GetEnvironmentVariable("TMP");
System.Environment.GetEnvironmentVariable("TEMP");
System.Environment.GetEnvironmentVariable("Path");
×îºóÌù³öÎÒ½øÐÐÉÏÃæ²Ù×÷»ñµÃµÄ±äÁ¿Öµ£¬ÊÂÏÈ˵Ã÷£¬±¾ÈËÊDZàдÁËÒ»¸öWinForm³ÌÐò£¬ÏîÄ¿Îļþ´æ·ÅÓÚD:\Visual Studio Projects\MyApplication\LifeAssistant£¬±àÒëºóµÄÎļþλÓÚD:\Visual Studio Projects\MyApplication\LifeAssistant\bin\Debug£¬×îºóµÄ½á¹ûÈçÏ£º
1¡¢ System.Diagnostics.


Ïà¹ØÎĵµ£º

GDI+Öз¢ÉúÒ»°ãÐÔ´íÎó(asp.net(C#))

×î½ü×ö±£´æÔ¶³ÌͼƬʱºò£¬¾ÍÔÚ±£´æµÄʱºò×ÜÊdzöÕâ¸ö´íÎó£¬ÍøÉÏgoogleÁËһȦ£¬¶¼ÊÇÔÙ˵ȨÏÞÎÊÌ⣬ÎÊÌâÎÒÊÇÓÃUÅÌ£¬ÄÄÀïÓÐʲôȨÏÞÎÊÌâ¡£
×îºóÎÞÒâÖз¢ÏÖÁËÎÊÌâËùÔÚ
±£´æµÄʱºò²»ÄÜÓÃÏà¶Ô·¾¶£¬Ò»¶¨ÒªÓÃserver.mappath()´¦Àíһϱ£´æµÄ·¾¶¡£¡£¡£°¦£¡ ......

×î½üµÄasp.net×ܽá

1. ËäÈ»ÊÇ.net£¬µ«ÊÇÒѾ­¼¸ºõÍêÈ«·ÅÆúÁË·þÎñÆ÷¿Ø¼þ£¬È¡¶ø´úÖ®µÄÊÇhtml¿Ø¼þ£¬¸³ÖµÊ±ºò¿ÉÒÔͨ¹ý×¢²ájavascript½Å±¾À´Íê³É¡£Ö»ÊÇѧϰ;ÖеÄÒ»¸öʵ¼ù£¬²»ÖªµÀÕâÑù»á²»»á¼õÉÙ±àÒ룬Ôö¼ÓÔËÐÐЧÂÊ¡£
2. ÍƼö¸úJQuery½áºÏ£¬NND£¬ÕâѾÕæµÄºÜÇ¿´ó...Èç¹ûÄã¸úÎÒÒ»ÑùÊÇjsС°×£¬ÓÖÏëNBÒ»°ÑŪ¸öAJAXʲôµÄ£¬ÓÃJQuery°Ñ¡£¡£¡£Õ⺢×Ó°üÄãÂú ......

ÓÃAsp.netÖÆ×÷¶¥²¿µ¼º½¿Ø¼þ

Ò»¡¢Ð§¹û¼ò½é
¡¡¡¡µ±µã»÷Ò»¼¶À¸Ä¿Ê±£¨ÈçÊ×Ò³£©£¬±»µã»÷µÄÒ»¼¶À¸Ä¿µÄµ¥Ôª¸ñ±³¾°É«·¢Éú±äÉ«£¬Èç¹û¸ÃÒ»¼¶À¸Ä¿ÏÂÓжþ¼¶À¸Ä¿£¬Ôò»áÔÚÏÂÒ»ÐÐÏÔʾ³öÀ´£¬·ñÔò¶þ¼¶À¸Ä¿ÕâÒ»Ðв»»áÏÔʾÈκζ«Î÷£¬µ«»áÕ¼Ò»¶¨µÄ¸ß¶È¡£µ±µã»÷¶þ¼¶À¸Ä¿Ê±£¬ÆäËùÊôµÄÒ»¼¶À¸Ä¿µ¥Ôª¸ñ±³¾°É«·¢Éú±ä»¯£¬Í¬Ê±±»µã»÷µÄ¶þ¼¶À¸Ä¿Ãû³Æ»á¼Ó´Ö£¬²¢ÔÚÇ°·½¼ÓÒ»¸ö“¡ ......

ÈçºÎʹÓÃASP.NET Profile

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

ASP.NET 4µ±ÖÐUrl RoutingµÄÖ§Ô®

ASP.NET 4µÄWeb Formsµ±ÖУ¬×îÁîÈ˼¤É͵ģ¬ÔòĪ¹ýÓÚÊÇURL Routing»úÖƵÄÈ«ÃæÖ§³Ö¡£¹ýÈ¥ÔÚASP.NET 3.5 SP1µ±ÖУ¬Web Forms»ò¶à»òÉپͿªÊ¼Ö§³ÖURL Routing»úÖÆ£¬ËüÈÃÎÒÃÇÔÚÍøÖ·µÄ³ÊÏÖÒÔ¼°Ê¹ÓÃÉϸü¼ÓµÄÓе¯ÐÔ¡£
¹ýÈ¥ÎÒÃÇÔÚASP.NETµ±ÖУ¬Ï°¹ßÓÚµ×ÏÂÕâÑùµÄÍøÖ·³ÊÏÖ·½Ê½£º
http://myWebSite/EditProduct.aspx?Id=1
µ«×î½ü¼¸ÄêR ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ