通过本文主要向大家介绍了js调用asp.net方法,asp.net,asp net培训,asp和asp.net的区别,零基础学asp.net等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
方法一:
string sPath = System.IO.Path.GetDirectoryName(Page.Request.PhysicalPath)
方法二:
string sPath = System.Web.HttpContext.Current.Request.MapPath("/")
方法三:
string sPath = Page.Server.MapPath("/");
我推荐使用第二种
</div>