摘要: 获取应用程序的根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 阅读全文
posted @ 2011-02-21 18:22 Felix Liang 阅读(642) 评论(0) 推荐(0) 编辑