如何获取asp.net网站的URL [英] how to get URL of asp.net website
本文介绍了如何获取asp.net网站的URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好朋友,
实际上我正在使用ff-mpeg进行在线视频编辑项目我也在使用流媒体播放器,我需要传递像src =流动播放器的http:// localhost:3222 / Online%20Video%20Editor。是否有任何方法可以获取URL当前PAge的页面名称
喜欢http:// localhost:3222 / Online%20Video%20Editor /
问候
lak
hello friends ,
actually i am working on a online video editing project using ff-mpeg also i am using flow player where i need to pass like src="http://localhost:3222/Online%20Video%20Editor" to flow player .is there any method by which we can get URL current PAge whith out page name
like "http://localhost:3222/Online%20Video%20Editor/"
regards
lak
推荐答案
试试这个!!
希望这会有所帮助..
Request.Url.ToString( ).Substring(0,Request.Url.ToString()。LastIndexOf(/));
Try this !!
Hope this helps..
Request.Url.ToString().Substring(0, Request.Url.ToString().LastIndexOf("/"));
试试这个。
Request.Url.ToString();
try this.
Request.Url.ToString();
这篇关于如何获取asp.net网站的URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文