Results 1 to 3 of 3

Thread: [RESOLVED] Current Page Name

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2005
    Posts
    116

    Resolved [RESOLVED] Current Page Name

    Hi,

    What's the best way to get the name of the current page in ASP.NET? Is it the same for ASP?

  2. #2
    Frenzied Member Phill64's Avatar
    Join Date
    Jul 2005
    Location
    Queensland, Australia
    Posts
    1,201

    Re: Current Page Name

    i like doing it this way

    VB Code:
    1. 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.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Feb 2005
    Posts
    116

    Re: Current Page Name

    Sounds good. I'll go with that.

    Thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width