Scott Reynolds <ad***@it-xenius.co.uk> typed:
Hello!
Could someone please provide me a sample, how to extract filename
from url?
http://www.mydomain.com/eng/Default.aspx -> Default.aspx
Thanks
Scott
You can do it in different ways. A easy way could be this:
Uri uri = Request.Url;
string[] segment = uri.Segments;
int position = segment.Length - 1;
string page = segment[position];
Response.Write(page);
--
Davide Vernole
MVP ASP/ASP.NET
Microsoft Certified Solution Developer