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

ASP.NET ·¾¶ÎÊÌâ - .NET¼¼Êõ / ASP.NET

СµÜÓõÄÊÇWIN 7 ϵͳ¡£
ÎļþµÄ½á¹¹ÊÇÕâÑùµÄ£ºE:\ASP.NET\´ó×÷Òµ\³ÌÐò\ZYGL\ZYFJ\XSZY

ÓÃServer.MapPath("../ZYFJ/XSZY/"),µ÷ÊÔ´íÎóÊÇ£ºÎ´ÄÜÓ³Éä·¾¶¡°/ZYFJ/XSZY/¡±¡£

ÇëÎÊÏ£¬ÕâÊÇʲôԭÒò°¡£¿
Server.MapPath("../")±íʾÉÏÒ»¼¶Ä¿Â¼ 


Server.MapPath("../ZYFJ/XSZY/")
¸ÄΪ
Server.MapPath(@"../ZYFJ/XSZY/")

More...
1.Server.MapPath("/") Ó¦ÓóÌÐò¸ùĿ¼ËùÔÚµÄλÖà Èç C:\Inetpub\wwwroot\
2.Server.MapPath("./") ±íʾËùÔÚÒ³ÃæµÄµ±Ç°Ä¿Â¼ 
3.Server.MapPath("../") ±íʾÉÏÒ»¼¶Ä¿Â¼ 
4.Server.MapPath("~/") ±íʾµ±Ç°Ó¦Óü¶³ÌÐòµÄĿ¼£¬Èç¹ûÊǸùĿ¼£¬¾ÍÊǸùĿ¼£¬Èç¹ûÊÇÐéÄâĿ¼£¬¾ÍÊÇÐéÄâĿ¼ËùÔÚµÄλÖà È磺C:\Inetpub\wwwroot\Example\
×¢£ºµÈЧÓÚServer.MapPath("~")



3Â¥µÄ½ÏÈ«ÃæÁË£¬¿ÉÒÔ¿´ÏÂmsdn

"/" ±íʾ¸ù·¾¶ "../"±íʾ¸¸Â·¾¶ 

Server.MapPath(Request.ApplicationPath+..)//ÕâÑù¿ÉÄÜ»áÓÐÒ»¸öBUG

×îºÃÊÇÕâÑù
string path=Request.ApplicationPath;
  if(this.path=="")
  this.path="/";
  if(!this.path.EndsWith("/"))
  this.path+="/"; //ÏÈÅжÏһϠ/
Server.MapPath(path+..)




Page.ResolveUrl("~/")


ÒýÓÃ
More...
1.Server.MapPath("/") Ó¦ÓóÌÐò¸ùĿ¼ËùÔÚµÄλÖà Èç C:\Inetp


Ïà¹ØÎÊ´ð£º

asp.netµ¼³öEXCELÎÊÌ⣡ - .NET¼¼Êõ / ASP.NET

C# code:

SqlConnection conn = CsDB.sqlcon();
SqlDataAdapter da = new SqlDataAdapter("select fwCoding from bjmuma_fwCoding where OrderNumber='" + Order + & ......

ÇóÖúasp.netͼƬÉÏ´« - .NET¼¼Êõ / ASP.NET

¾ÍÊÇÒ»¸ö°´Å¥£¬µã»÷Ö®ºó´ò¿ª¶Ô»°¿ò£¬È»ºóѡȡͼƬ¡£¾ÍÕâÑùÉÏ´«¡£¡£
ÔõôʵÏÖ¡£ÔÚÍøÉÏËѵ½ÄÇô¶àµÄ´úÂ룬ȫÊǺܶàµÄÄÇÖÖ£¬²»ÖªµÀ£¬¿´²»ÏÂÈ¥¡£
ËùÒÔÔÚÕâÀïÏëÇë´ó¸ç´ó½ã°ï°ïæ¡£

ʹÓÃ×Ô´øµÄfileupload¿Ø¼þ¿ÉÒÔʵÏÖ ......

aspÍøÕ¾°²È«ÎÊÌâ - Web ¿ª·¢ / ASP

¹ØÓÚÍøÕ¾°²È«µÄÎÊÌ⣡
ÎÒÁ˽⵽µÄÍøÕ¾°²È«ÎÊÌâ°üÀ¨£º
sql×¢Èë©¶´ºÍ±©¿â©¶´»¹ÓÐÉÏ´«Â©¶´
³ýÁËÕâЩ»¹ÓÐÆäËûµÄ©¶´Ã´£¿
×¢Èë©¶´¿ÉÒÔͨ¹ý¹ýÂËÀ´·ÀÖ¹
±©¿â©¶´Ôõô·ÀÖ¹
»¹ÓÐÈËÉÏ´«µÄľÂíÊÇ.gif
ÕâÖÖ©¶´Ôõôȥ± ......

asp.netÈçºÎÌá¸ß·ÃÎÊËÙ¶È - .NET¼¼Êõ / ASP.NET

ÎÒ×î½ü×öÁËÒ»¸öÍøÕ¾ÊǹØÓÚ²úƷչʾµÄ ~ Õû¸öÍøÕ¾Í¼Æ¬¶¼Õ¼ÓÃÁËÒ»´ó°ë  
ÕâÑùµÄ»°·ÃÎÊËٶȾͷdz£Âý ÓÐʲô°ì·¨¿ÉÒÔ½â¾öÂð£¿
Âé·³´ó¼Ò¶à¶à¸øµãÒâ¼û £¡ ÓÐʲô¾¡¹Ü˵ 
3Q´ó¼Ò
htmlÒ³Ãæ.

Õâ¸ö,¼ÈÈ»Ö÷Ò ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ