获取URL!

lihaoran8577 2010-10-16 05:18:42
<img src="index.aspx" />
我index.aspx,是获取当前页面的URL地址,当我将index.aspx当图片传入网站时,怎么获取我网页的URL!
我index.aspx是用HttpContext.Current.Request.Url.ToString();获取的!在线等!!!!
...全文
153 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
jshi123 2010-10-16
  • 打赏
  • 举报
回复
Request.UrlReferrer.ToString();
wuyq11 2010-10-16
  • 打赏
  • 举报
回复
http://www.test.com/testweb/default.aspx
Request.ApplicationPath: /testweb
Request.CurrentExecutionFilePath: /testweb/default.aspx
Request.FilePath: /testweb/default.aspx
Request.Path: /testweb/default.aspx
Request.RawUrl: /testweb/default.aspx
Request.Url.AbsolutePath: /testweb/default.aspx
Request.Url.AbsoluteUri: http://www.test.com/testweb/default.aspx
Request.Url.Host: www.test.com
Request.Url.LocalPath: /testweb/default.aspx
qz362100 2010-10-16
  • 打赏
  • 举报
回复
不知道在讲什么哦!!
int64 2010-10-16
  • 打赏
  • 举报
回复
其实,没看明白你的意思

111,129

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Creator Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧