Subject: User Control Container Communication
Posted By: Colonel Angus Post Date: 1/30/2004 2:56:17 PM
I am able to determine a User Control's host page directory with
Page.TemplateSourceDirectory
but my control needs to know what page it's hosted on.

I'm at a loss, any ideas?

- - - - - - - - - - - - - - - - - - - - - - -
In God we trust, everything else we test.
Reply By: planoie Reply Date: 1/30/2004 3:09:29 PM
Do you need to know the name of the page? Or the .net class of the parent page?

Request.FilePath will tell you the virtual path of the current request page.

Peter
------------------------------------------------------
Work smarter, not harder.
Reply By: Colonel Angus Reply Date: 1/30/2004 3:25:11 PM
Bingo - just what I needed.  I don't know why I didn't think of the request object.  duh

Thanks

- - - - - - - - - - - - - - - - - - - - - - -
In God we trust, everything else we test.

Go to topic 9216

Return to index page 958
Return to index page 957
Return to index page 956
Return to index page 955
Return to index page 954
Return to index page 953
Return to index page 952
Return to index page 951
Return to index page 950
Return to index page 949