ASP.net中如何取当前页面的路径

Request.ServerVariables["SERVER_NAME"].ToString() + Request.ApplicationPath.ToString() + "/upedFile/";
Request.ServerVariables["SERVER_NAME"].ToString() 取服务器的名称
Request.ApplicationPath.ToString() 取应用程序的名称
这样取出来只有路径不带文件名?
Request.Url取当前URL
posted on 2006-12-12 15:52  稻草人.Net  阅读(1373)  评论(0编辑  收藏  举报