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:
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>2002-09-28 11:44:14 +0400
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>2002-09-28 11:44:14 +0400
commitf2e90236bba7caf5d6c4c6609c8f275e4bd733e2 (patch)
tree6b88b6a18e4d1c62c9a3b70e7929191ecfd15ac9 /mcs/class/System.Web/System.Web.Hosting/SimpleWorkerRequest.cs
parent7a2d26227714ffce5b6438e689899290e3e16988 (diff)
2002-09-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* list: added PageHandlerFactory. * System.Web/HttpApplication.cs: * System.Web/HttpApplicationFactory.cs: * System.Web/HttpRequest.cs: * System.Web/HttpRuntime.cs: * System.Web.Compilation/AspElements.cs: * System.Web.Compilation/AspGenerator.cs: * System.Web.Compilation/AspParser.cs: * System.Web.Compilation/PageCompiler.cs: * System.Web.Compilation/TemplateFactory.cs: Modified file. * System.Web.Configuration/HttpCapabilitiesBase.cs: * System.Web.Hosting/SimpleWorkerRequest.cs: * System.Web.UI/PageHandlerFactory.cs: * System.Web.UI/PageParser.cs: * System.Web.UI/TemplateControlParser.cs: we are now able to compile pages and use HttpApplication, HttpRuntime and SimpleWorkerRequest. svn path=/trunk/mcs/; revision=7880
Diffstat (limited to 'mcs/class/System.Web/System.Web.Hosting/SimpleWorkerRequest.cs')
-rw-r--r--mcs/class/System.Web/System.Web.Hosting/SimpleWorkerRequest.cs21
1 files changed, 10 insertions, 11 deletions
diff --git a/mcs/class/System.Web/System.Web.Hosting/SimpleWorkerRequest.cs b/mcs/class/System.Web/System.Web.Hosting/SimpleWorkerRequest.cs
index 835f08aeba2..764aa417a18 100644
--- a/mcs/class/System.Web/System.Web.Hosting/SimpleWorkerRequest.cs
+++ b/mcs/class/System.Web/System.Web.Hosting/SimpleWorkerRequest.cs
@@ -38,7 +38,7 @@ namespace System.Web.Hosting
object o = current.GetData (".appPath");
if (o == null)
throw new HttpException ("Cannot get .appPath");
- _AppVirtualPath = o.ToString ();
+ _AppPhysicalPath = o.ToString ();
o = current.GetData (".hostingVirtualPath");
if (o == null)
@@ -48,7 +48,7 @@ namespace System.Web.Hosting
o = current.GetData (".hostingInstallDir");
if (o == null)
throw new HttpException ("Cannot get .hostingInstallDir");
- _AppPhysicalPath = CheckAndAddSlash (o.ToString ());
+ _AppVirtualPath = CheckAndAddSlash (o.ToString ());
_Output = Output;
if (_AppPhysicalPath == null)
@@ -120,9 +120,9 @@ namespace System.Web.Hosting
public override string GetFilePathTranslated ()
{
if (Path.DirectorySeparatorChar != '/')
- return _AppPhysicalPath.Replace ('/', Path.DirectorySeparatorChar);
+ return _AppPhysicalPath + _Page.Replace ('/', Path.DirectorySeparatorChar);
- return _AppPhysicalPath;
+ return _AppPhysicalPath + _Page;
}
public override string GetHttpVerbName ()
@@ -248,11 +248,10 @@ namespace System.Web.Hosting
{
string sPath;
- if ("/" == _AppVirtualPath) {
- sPath = _AppVirtualPath + "/" + _Page;
- } else {
+ if ("/" != _AppVirtualPath)
sPath = "/" + _Page;
- }
+ else
+ sPath = String.Empty;
if (bIncludePathInfo && null != _PathInfo)
return sPath + _PathInfo;
@@ -260,14 +259,14 @@ namespace System.Web.Hosting
return sPath;
}
- // Parses out the string after / know as the "path info"
+ // Parses out the string after / known as the "path info"
private void ParsePathInfo ()
{
- int iPos = _Page.IndexOf("/");
+ /* int iPos = _Page.LastIndexOf("/");
if (iPos >= 0) {
_PathInfo = _Page.Substring (iPos);
_Page = _Page.Substring (0, iPos);
- }
+ }*/
}
}
}