mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 11:21:39 -10:00
* System.Web/HttpApplicationFactory.cs: add the context as parameter when building the application Type. * System.Web/HttpCookie.cs: new internal constructor. * System.Web/HttpCookieCollection.cs: new internal method to make a cookie expire. * System.Web/HttpRequest.cs: MapPath fixes. * System.Web/HttpResponse.cs: implemented ApplyAppPathModifier. * System.Web/HttpRuntime.cs: fixed typo in AppDomainAppVirtualPath. * System.Web.Compilation/AspGenerator.cs: now it uses the current HttpContext when creating user controls. TemplateSourceDirectory is no longer a dummy value. * System.Web.Compilation/GlobalAsaxCompiler.cs: * System.Web.Compilation/PageCompiler.cs: * System.Web.Compilation/UserControlCompiler.cs: set the context which will be used to locate the files. * System.Web.UI/BaseParser.cs: use MapPath and context to locate files. * System.Web.UI/Control.cs: implemented MapPathSecure. * System.Web.UI/TemplateControl.cs: use UrlUtils to generate the path. * System.Web.UI/TemplateControlParser.cs: use the context and MapPath. * System.Web.UI/UserControl.cs: implemented MapPath. * System.Web.UI/UserControlParser.cs: added context parameter to constructor. * System.Web.Util/PathUtil.cs: removed. * System.Web.Util/UrlUtils.cs: fixed Combine to handle '~'. svn path=/trunk/mcs/; revision=9737
51 lines
1002 B
C#
51 lines
1002 B
C#
//
|
|
// System.Web.UI.UserControlParser
|
|
//
|
|
// Authors:
|
|
// Gonzalo Paniagua Javier ([email protected])
|
|
//
|
|
// (C) 2002 Ximian, Inc (http://www.ximian.com)
|
|
//
|
|
using System;
|
|
using System.Web;
|
|
using System.Web.Compilation;
|
|
|
|
namespace System.Web.UI
|
|
{
|
|
public sealed class UserControlParser : TemplateControlParser
|
|
{
|
|
internal UserControlParser (string inputFile, HttpContext context)
|
|
{
|
|
Context = context;
|
|
InputFile = context.Request.MapPath (inputFile);
|
|
}
|
|
|
|
public static Type GetCompiledType (string virtualPath, string inputFile, HttpContext context)
|
|
{
|
|
UserControlParser ucp = new UserControlParser (inputFile, context);
|
|
Type t = ucp.CompileIntoType ();
|
|
return t;
|
|
}
|
|
|
|
protected override Type CompileIntoType ()
|
|
{
|
|
return UserControlCompiler.CompileUserControlType (this);
|
|
}
|
|
|
|
protected override Type DefaultBaseType
|
|
{
|
|
get {
|
|
return typeof (UserControl);
|
|
}
|
|
}
|
|
|
|
protected override string DefaultDirectiveName
|
|
{
|
|
get {
|
|
return "control";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|