摘要:
获取应用程序的根Url VB代码PublicFunctionApplicationRootUrl()AsStringDimreqAsHttpRequest=HttpContext.Current.RequestReturnreq.Url.GetLeftPart(System.UriPartial.Authority)+req.ApplicationPath&"/"EndFunction'调用方式如下:ApplicationRootUrl()&"prg/if/ifShowMsgAddUp.aspx"'结果:http://localhost:8010/iOffice/prg/if 阅读全文