User Control to Know Page Hosting It?

Discussion in 'ASP .Net' started by Merkisson Jourhanssen, Apr 20, 2004.

  1. How can user control know, in it code behind, the file name of the aspx page
    that is hosting the user control?

    Thank you.
     
    Merkisson Jourhanssen, Apr 20, 2004
    #1
    1. Advertisements

  2. Try Page.Request.Url.


    "Merkisson Jourhanssen" <> wrote in message
    news:#...
    > How can user control know, in it code behind, the file name of the aspx

    page
    > that is hosting the user control?
    >
    > Thank you.
    >
    >
     
    Peter Rilling, Apr 20, 2004
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Charlie@CBFC
    Replies:
    2
    Views:
    2,234
    S. Justin Gengo
    Oct 15, 2005
  2. Mad Scientist Jr
    Replies:
    0
    Views:
    906
    Mad Scientist Jr
    Mar 22, 2006
  3. Gummy
    Replies:
    2
    Views:
    538
    Gummy
    Sep 11, 2006
  4. Jonathan Wood

    User Control to Control Other User Control

    Jonathan Wood, Jan 24, 2010, in forum: ASP .Net
    Replies:
    4
    Views:
    813
    Jonathan Wood
    Feb 2, 2010
  5. Fabrizio
    Replies:
    5
    Views:
    470
    Alessandro Zifiglio
    Feb 24, 2004
  6. Kiran More
    Replies:
    2
    Views:
    525
    Kiran More
    Nov 14, 2006
  7. teo1991
    Replies:
    0
    Views:
    838
    teo1991
    Apr 2, 2009
  8. Andries

    I know, I know, I don't know

    Andries, Apr 23, 2004, in forum: Perl Misc
    Replies:
    3
    Views:
    513
    Gregory Toomey
    Apr 23, 2004
Loading...