2009-09-28 Marek Habersack <mhabersack@novell.com>
authorMarek Habersack <grendel@twistedcode.net>
Mon, 28 Sep 2009 18:07:53 +0000 (18:07 -0000)
committerMarek Habersack <grendel@twistedcode.net>
Mon, 28 Sep 2009 18:07:53 +0000 (18:07 -0000)
commitd28ffb1680e3848827b2843e232e532d49e963dc
tree287b9caa172ff1eab0e83e7e0e7671929ab02c19
parente001af32dc412e0dbdfe86fa6a14e2eddedbfcca
2009-09-28  Marek Habersack  <mhabersack@novell.com>

* HttpContext.cs: GetResourceProvider - renamed the 'key' argument
to 'virtualPath' in order to reflects its purpose better. Local
resource providers are created for the passed virtualPath and not
for the current request's path. Fixes bug #542484

2009-09-28  Marek Habersack  <mhabersack@novell.com>

* TemplateControlCompiler.cs: ResourceProviderHasObject calls
HttpContext.GetResourceProvider with the current file's path, not
current request's. Fixes situations when localized control lives
in a master page or user control. Fixes bug #542484

* BaseCompiler.cs: introduced a helper property InputVirtualPath
which returns a VirtualPath object for the current control's
virtual path.

svn path=/trunk/mcs/; revision=142773
mcs/class/System.Web/System.Web.Compilation/BaseCompiler.cs
mcs/class/System.Web/System.Web.Compilation/ChangeLog
mcs/class/System.Web/System.Web.Compilation/TemplateControlCompiler.cs
mcs/class/System.Web/System.Web/ChangeLog
mcs/class/System.Web/System.Web/HttpContext.cs