Hi,
What's the best way to get the name of the current page in ASP.NET? Is it the same for ASP?
Printable View
Hi,
What's the best way to get the name of the current page in ASP.NET? Is it the same for ASP?
i like doing it this way
VB Code:
Dim parts() As String = Me.Context.Request.RawUrl.Split("/")
that way you can use the last member to get just the filename, or the 2nd memer to get the domain name.
Sounds good. I'll go with that.
Thanks.