user controls

  • Thread starter Thread starter Phil Townsend
  • Start date Start date
P

Phil Townsend

Is there any way to tell the filename of a webform from a user control
that is calling it? In other words, if I place a user control into a
webform, can I, in the code behind, tell what .aspx page has called the
user control? Thx!
 
The user control contains a page property that holds a reference to the
containing page. In most instances, this containing page is tied to its aspx
file, but not necessarily.

--
Regards
Alvin Bruney
[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
available at www.lulu.com/owc
 
From your user control code the path of the aspx page is in the property
Page.Request.Path.

--
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.

EmailID = varnk
Domain = Diebold.com
 
Back
Top