Results 1 to 3 of 3

Thread: page name ?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2001
    Location
    MA, US
    Posts
    78

    page name ?

    Hi,

    Can I retrieve programatically the name of the current page in the code behind?

    Thank you,

    svatasoiu

  2. #2
    Hyperactive Member
    Join Date
    Jan 2003
    Location
    Cape Cod, US
    Posts
    292
    You can always extrapolate it from Request.FilePath, although I'm sure there's a better .netty way...

  3. #3
    Lively Member
    Join Date
    Aug 2002
    Location
    outerspace
    Posts
    126
    Do you mean the url? you can use this for the whole url
    (Page.Request.Url.ToString) and then I suppose to some string function to trim it to the actually name.aspx if that is what you mean
    "All those who wonder are not lost" -j.r.r tolkien

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