Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/System.Web/System.Web.UI/PageParser.cs')
-rw-r--r--mcs/class/System.Web/System.Web.UI/PageParser.cs32
1 files changed, 1 insertions, 31 deletions
diff --git a/mcs/class/System.Web/System.Web.UI/PageParser.cs b/mcs/class/System.Web/System.Web.UI/PageParser.cs
index 4af4452af99..7a15503b073 100644
--- a/mcs/class/System.Web/System.Web.UI/PageParser.cs
+++ b/mcs/class/System.Web/System.Web.UI/PageParser.cs
@@ -35,7 +35,6 @@ using System.Text;
using System.Web.Compilation;
using System.Web.Configuration;
using System.Web.Util;
-using System.IO;
namespace System.Web.UI
{
@@ -63,7 +62,6 @@ namespace System.Web.UI
#if NET_2_0
string masterPage;
Type masterType;
- string title;
#endif
public PageParser ()
@@ -79,17 +77,6 @@ namespace System.Web.UI
AddApplicationAssembly ();
}
-#if NET_2_0
- internal PageParser (string virtualPath, TextReader reader, HttpContext context)
- {
- Context = context;
- BaseVirtualDir = UrlUtils.GetDirectory (virtualPath);
- Reader = reader;
- SetBaseType (PagesConfig.PageBaseType);
- AddApplicationAssembly ();
- }
-#endif
-
public static IHttpHandler GetCompiledPageInstance (string virtualPath,
string inputFile,
HttpContext context)
@@ -102,7 +89,7 @@ namespace System.Web.UI
internal override void ProcessMainAttributes (Hashtable atts)
{
string enabless = GetString (atts, "EnableSessionState",
-#if NET_2_0
+#if CONFIGURATION_2_0
PagesConfig.EnableSessionState.ToString()
#else
PagesConfig.EnableSessionState
@@ -249,16 +236,6 @@ namespace System.Web.UI
validateRequest = GetBool (atts, "ValidateRequest", PagesConfig.ValidateRequest);
clientTarget = GetString (atts, "ClientTarget", null);
if (clientTarget != null) {
-#if NET_2_0
- ClientTargetSection sec = (ClientTargetSection)WebConfigurationManager.GetSection ("system.web/clientTarget");
- if (sec.ClientTargets[clientTarget] == null) {
- ThrowParseException (String.Format (
- "ClientTarget '{0}' is an invalid alias. See the " +
- "documentation for <clientTarget> config. section.",
- clientTarget));
- }
- clientTarget = sec.ClientTargets[clientTarget].UserAgent;
-#else
NameValueCollection coll;
coll = (NameValueCollection) Context.GetConfig ("system.web/clientTarget");
if (coll == null || coll [clientTarget] == null) {
@@ -268,7 +245,6 @@ namespace System.Web.UI
clientTarget));
}
clientTarget = (string) coll [clientTarget];
-#endif
}
notBuffer = !GetBool (atts, "Buffer", true);
@@ -279,8 +255,6 @@ namespace System.Web.UI
// Make sure the page exists
if (masterPage != null)
MasterPageParser.GetCompiledMasterType (masterPage, MapPath (masterPage), HttpContext.Current);
-
- title = GetString(atts, "Title", null);
#endif
// Ignored by now
GetString (atts, "EnableViewStateMac", null);
@@ -408,10 +382,6 @@ namespace System.Web.UI
internal Type MasterType {
get { return masterType; }
}
-
- internal string Title {
- get { return title; }
- }
#endif
}
}