>More specifically, I'm using log4net and I want to have separate loggers for
>each page where the %logger property shows as 'webForm1.aspx' instead of
>'basePage.aspx' for each log entry.
this.GetType() will return type info for the actual type of the
current page object.
Request.FilePath returns the file path of the page being requested if
that's what you're looking for.
Mattias

Signature
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Sid DeLuca - 22 Oct 2007 21:24 GMT
Perfect!
(Me.GetType for the vb folks out there)
Thanks, Mattias.
> >More specifically, I'm using log4net and I want to have separate loggers for
> >each page where the %logger property shows as 'webForm1.aspx' instead of
[quoted text clipped - 7 lines]
>
> Mattias