ASP.NET – How to get current webpage name.
Here is the single line of code for getting current webpage name.
Dim pag As String = System.IO.Path.GetFileName(System.Web.HttpContext.Current.Request.Url.AbsolutePath())
Here is the single line of code for getting current webpage name.
Dim pag As String = System.IO.Path.GetFileName(System.Web.HttpContext.Current.Request.Url.AbsolutePath())
RSS feed for comments on this post. TrackBack URI
just came across this page. but not tried it yet.
i suppose it should work. thanks anyway man
how to add a file on our webpage from system and then make it available for downloading by user just like we download music,softwares form any website??
is there any code for it??
good idea. thanks a lot.
Thanks for the tips-short but useful.
I guess Request.Url.AbsolutePath() should alone do the task. Just guess..not sure.
Regards,
Sangam Uprety
giving error Object reference not set to an instance of an object. set with new keyword