diff options
17 files changed, 332 insertions, 51 deletions
diff --git a/mcs/class/System.Web/ChangeLog b/mcs/class/System.Web/ChangeLog index 0e08518c192..b04f586a3d9 100644 --- a/mcs/class/System.Web/ChangeLog +++ b/mcs/class/System.Web/ChangeLog @@ -1,3 +1,8 @@ +2002-06-03 Gonzalo Paniagua Javier <gonzalo@ximian.com> + + * System.Web.Security: + * System.Web.SessionState: new directories. + 2002-05-17 Duncan Mak <duncan@ximian.com> * System.Web.build: Added new arguments: "/noconfig", diff --git a/mcs/class/System.Web/System.Web.Configuration/ChangeLog b/mcs/class/System.Web/System.Web.Configuration/ChangeLog new file mode 100644 index 00000000000..3e79ab6bb8e --- /dev/null +++ b/mcs/class/System.Web/System.Web.Configuration/ChangeLog @@ -0,0 +1,4 @@ +2002-06-03 Gonzalo Paniagua Javier <gonzalo@ximian.com> + + * System.Web.Configuration/HttpCapabilitiesBase.cs: New file. + diff --git a/mcs/class/System.Web/System.Web.Configuration/HttpCapabilitiesBase.cs b/mcs/class/System.Web/System.Web.Configuration/HttpCapabilitiesBase.cs new file mode 100644 index 00000000000..c328d0f300c --- /dev/null +++ b/mcs/class/System.Web/System.Web.Configuration/HttpCapabilitiesBase.cs @@ -0,0 +1,36 @@ +// +// System.Web.Configuration.HttpCapabilitiesBase +// +// Authors: +// Gonzalo Paniagua Javier (gonzalo@ximian.com) +// +// (C) 2002 Ximian, Inc (http://www.ximian.com) +// + +namespace System.Web.Configuration { + using System; + using System.Collections; + using System.Web; + +public class HttpCapabilitiesBase +{ + protected Hashtable _capabilities; + + public HttpCapabilitiesBase () + { + _capabilities = new Hashtable (); + } + + public virtual string this [string key] + { + get { return _capabilities [key] as string; } + } + + public static HttpCapabilitiesBase GetConfigCapabilities (string configKey, HttpRequest request) + { + throw new NotImplementedException (); + } + +} +} + diff --git a/mcs/class/System.Web/System.Web.Security/ChangeLog b/mcs/class/System.Web/System.Web.Security/ChangeLog new file mode 100644 index 00000000000..1aaf169afc7 --- /dev/null +++ b/mcs/class/System.Web/System.Web.Security/ChangeLog @@ -0,0 +1,4 @@ +2002-06-03 Gonzalo Paniagua Javier <gonzalo@ximian.com> + + * DefaultAuthenticationEventArgs.cs: added file. + diff --git a/mcs/class/System.Web/System.Web.Security/DefaultAuthenticationEventArgs.cs b/mcs/class/System.Web/System.Web.Security/DefaultAuthenticationEventArgs.cs new file mode 100644 index 00000000000..2031b829d9d --- /dev/null +++ b/mcs/class/System.Web/System.Web.Security/DefaultAuthenticationEventArgs.cs @@ -0,0 +1,32 @@ +// +// System.Web.Security.DefaultAuthenticationEventArgs +// +// Authors: +// Gonzalo Paniagua Javier (gonzalo@ximian.com) +// +// (C) 2002 Ximian, Inc (http://www.ximian.com) +// + +namespace System.Web.Security { + using System; + using System.Web; + +public sealed class DefaultAuthenticationEventArgs : EventArgs +{ + private HttpContext _context; + + public DefaultAuthenticationEventArgs (HttpContext context) + { + if (context == null) + throw new ArgumentNullException ("context"); + + _context = context; + } + + public HttpContext Context + { + get { return _context; } + } +} +} + diff --git a/mcs/class/System.Web/System.Web.SessionState/ChangeLog b/mcs/class/System.Web/System.Web.SessionState/ChangeLog new file mode 100644 index 00000000000..807fceed5b0 --- /dev/null +++ b/mcs/class/System.Web/System.Web.SessionState/ChangeLog @@ -0,0 +1,6 @@ +2002-06-03 Gonzalo Paniagua Javier <gonzalo@ximian.com> + + * IReadOnlySessionState.cs: + * IRequiresSessionState.cs: + * SessionStateMode.cs: new files. + diff --git a/mcs/class/System.Web/System.Web.SessionState/IReadOnlySessionState.cs b/mcs/class/System.Web/System.Web.SessionState/IReadOnlySessionState.cs new file mode 100644 index 00000000000..d9eb664a484 --- /dev/null +++ b/mcs/class/System.Web/System.Web.SessionState/IReadOnlySessionState.cs @@ -0,0 +1,15 @@ +// +// System.Web.SessionState.IReadOnlySessionState +// +// Authors: +// Gonzalo Paniagua Javier (gonzalo@ximian.com) +// +// (C) 2002 Ximian, Inc (http://www.ximian.com) +// + +namespace System.Web.SessionState { +public interface IReadOnlySessionState : IRequiresSessionState +{ +} +} + diff --git a/mcs/class/System.Web/System.Web.SessionState/IRequiresSessionState.cs b/mcs/class/System.Web/System.Web.SessionState/IRequiresSessionState.cs new file mode 100644 index 00000000000..dd9a40b732b --- /dev/null +++ b/mcs/class/System.Web/System.Web.SessionState/IRequiresSessionState.cs @@ -0,0 +1,15 @@ +// +// System.Web.SessionState.IRequiresSessionState +// +// Authors: +// Gonzalo Paniagua Javier (gonzalo@ximian.com) +// +// (C) 2002 Ximian, Inc (http://www.ximian.com) +// + +namespace System.Web.SessionState { +public interface IRequiresSessionState +{ +} +} + diff --git a/mcs/class/System.Web/System.Web.SessionState/SessionStateMode.cs b/mcs/class/System.Web/System.Web.SessionState/SessionStateMode.cs new file mode 100644 index 00000000000..1a5fcc290c3 --- /dev/null +++ b/mcs/class/System.Web/System.Web.SessionState/SessionStateMode.cs @@ -0,0 +1,20 @@ +// +// System.Web.SessionState.SessionStateMode +// +// Authors: +// Gonzalo Paniagua Javier (gonzalo@ximian.com) +// +// (C) 2002 Ximian, Inc (http://www.ximian.com) +// + +namespace System.Web.SessionState { +public enum SessionStateMode +{ + Off = 0, + InProc = 1, + StateServer = 2, + SQLServer = 3 +} + +} + diff --git a/mcs/class/System.Web/System.Web.UI.HtmlControls/ChangeLog b/mcs/class/System.Web/System.Web.UI.HtmlControls/ChangeLog index 99a47caa63d..df1e190fbcf 100644 --- a/mcs/class/System.Web/System.Web.UI.HtmlControls/ChangeLog +++ b/mcs/class/System.Web/System.Web.UI.HtmlControls/ChangeLog @@ -1,3 +1,9 @@ +2002-06-03 Gonzalo Paniagua Javier <gonzalo@ximian.com> + + * System.Web.UI.HtmlControls/HtmlForm.cs: + (RenderAttributes): changed new by override. + (Name): allow setting the property. + 2002-05-10 Duncan Mak <duncan@ximian.com> * HtmlTableCellCollection.cs (this): Updated the indexer to return diff --git a/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlForm.cs b/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlForm.cs index af583f3be5f..8b670da189e 100644 --- a/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlForm.cs +++ b/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlForm.cs @@ -15,7 +15,7 @@ namespace System.Web.UI.HtmlControls{ public HtmlForm(): base("form"){}
- protected new void RenderAttributes(HtmlTextWriter writer){
+ protected override void RenderAttributes(HtmlTextWriter writer){
writer.WriteAttribute("name",RenderedName);
Attributes.Remove("name");
writer.WriteAttribute("method",Method);
@@ -135,6 +135,9 @@ namespace System.Web.UI.HtmlControls{ }
return String.Empty;
}
+ set {
+ Attributes ["Name"] = value;
+ }
}
internal string RenderedName{
diff --git a/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog b/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog index fe2f4e6e1d9..3031ba173a6 100644 --- a/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog +++ b/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog @@ -1,3 +1,8 @@ +2002-06-03 Gonzalo Paniagua Javier <gonzalo@ximian.com> + + * WebControl.cs: added attributes PersistChildrenAttribute and + ParseChildrenAttribute. + 2002-05-24 Duncan Mak <duncan@ximian.com> * DataGridItem.cs (SetItemType): Changed function signature to diff --git a/mcs/class/System.Web/System.Web.UI.WebControls/WebControl.cs b/mcs/class/System.Web/System.Web.UI.WebControls/WebControl.cs index 768e2a635d7..e139d22050a 100755 --- a/mcs/class/System.Web/System.Web.UI.WebControls/WebControl.cs +++ b/mcs/class/System.Web/System.Web.UI.WebControls/WebControl.cs @@ -20,6 +20,8 @@ using System.Collections.Specialized; namespace System.Web.UI.WebControls
{
+ [PersistChildrenAttribute(false)]
+ [ParseChildrenAttribute(true)]
public class WebControl : Control, IAttributeAccessor
{
//TODO: A list of private members may be incomplete
diff --git a/mcs/class/System.Web/System.Web.UI/ChangeLog b/mcs/class/System.Web/System.Web.UI/ChangeLog index 6ffaf5b0171..48b8a7af37d 100644 --- a/mcs/class/System.Web/System.Web.UI/ChangeLog +++ b/mcs/class/System.Web/System.Web.UI/ChangeLog @@ -1,3 +1,10 @@ +2002-06-03 Gonzalo Paniagua Javier <gonzalo@ximian.com> + + * Page.cs: + (FileDependencies): now is public public. + (EnableViewStateMAC): uncommented and made protected. + (GetTypeHashCode): added method. + 2002-05-24 Duncan Mak <duncan@ximian.com> * TemplateControl.cs (SetStringResourcePointer): Fixed typo. diff --git a/mcs/class/System.Web/System.Web.UI/Page.cs b/mcs/class/System.Web/System.Web.UI/Page.cs index 3491b699666..03fc7151b5c 100755 --- a/mcs/class/System.Web/System.Web.UI/Page.cs +++ b/mcs/class/System.Web/System.Web.UI/Page.cs @@ -73,17 +73,17 @@ namespace System.Web.UI { set { throw new NotImplementedException (); } } -// public override bool EnableViewStateMac { -// get { throw new NotImplementedException (); } -// set { throw new NotImplementedException (); } -// } + protected bool EnableViewStateMac { + get { throw new NotImplementedException (); } + set { throw new NotImplementedException (); } + } public string ErrorPage { get { throw new NotImplementedException (); } set { throw new NotImplementedException (); } } - ArrayList FileDependencies { + public ArrayList FileDependencies { set { throw new NotImplementedException (); } } @@ -223,6 +223,10 @@ namespace System.Web.UI { { } + public virtual int GetTypeHashCode () + { + return this.GetHashCode (); + } #endregion } } diff --git a/mcs/class/System.Web/System.Web/ChangeLog b/mcs/class/System.Web/System.Web/ChangeLog index 71363d022dc..93684b97b57 100644 --- a/mcs/class/System.Web/System.Web/ChangeLog +++ b/mcs/class/System.Web/System.Web/ChangeLog @@ -1,3 +1,7 @@ +2002-06-03 Gonzalo Paniagua Javier <gonzalo@ximian.com> + + * HttpBrowserCapabilities.cs: stubbed out. + 2002-05-18 Miguel de Icaza <miguel@ximian.com> * HttpRuntime.cs: Reformat file. diff --git a/mcs/class/System.Web/System.Web/HttpBrowserCapabilities.cs b/mcs/class/System.Web/System.Web/HttpBrowserCapabilities.cs index fba22838dc5..0c13985d993 100755 --- a/mcs/class/System.Web/System.Web/HttpBrowserCapabilities.cs +++ b/mcs/class/System.Web/System.Web/HttpBrowserCapabilities.cs @@ -1,45 +1,158 @@ -//
-// System.Web.HttpBrowserCapabilities
-//
-// Author:
-// Patrik Torstensson (Patrik.Torstensson@labs2.com)
-//
-using System;
-
-namespace System.Web {
- [MonoTODO()]
- public class HttpBrowserCapabilities
- {
- public HttpBrowserCapabilities()
- {
- //
- // TODO: Add co nstructor logic here
- //
- }
-
- [MonoTODO()]
- public string Type {
- get {
- throw new NotImplementedException();
- }
- }
-
- public double MinorVersion {
- get {
- throw new NotImplementedException ();
- }
- }
-
- public double MajorVersion {
- get {
- throw new NotImplementedException ();
- }
- }
-
- public string Browser {
- get {
- throw new NotImplementedException ();
- }
- }
- }
-}
+// +// System.Web.HttpBrowserCapabilities +// +// Author: +// Patrik Torstensson (Patrik.Torstensson@labs2.com) +// Gonzalo Paniagua Javier (gonzalo@ximian.com) +// +using System; +using System.Web.Configuration; + +namespace System.Web { +public class HttpBrowserCapabilities : HttpCapabilitiesBase +{ + public HttpBrowserCapabilities() + { + } + + public bool ActiveXControls + { + get { return false; } + } + + [MonoTODO()] + public bool AOL + { + get { return false; } + } + + [MonoTODO()] + public bool BackGroundSounds + { + get { return false; } + } + + [MonoTODO()] + public bool Beta + { + get { return false; } + } + + [MonoTODO()] + public string Browser + { + get { return "Not Implemented"; } + } + + [MonoTODO()] + public bool CDF + { + get { return false; } + } + + [MonoTODO()] + public Version ClrVersion + { + get { return new Version (0, 0); } + } + + [MonoTODO()] + public bool Cookies + { + get { return true; } + } + + [MonoTODO()] + public bool Crawler + { + get { return false; } + } + + [MonoTODO()] + public Version EcmaScriptVersion + { + get { return new Version (0, 0); } + } + + [MonoTODO()] + public bool Frames + { + get { return true; } + } + + [MonoTODO()] + public bool JavaApplets + { + get { return false; } + } + + [MonoTODO()] + public bool JavaScript + { + get { return true; } + } + + [MonoTODO()] + public int MajorVersion + { + get { return 0; } + } + + [MonoTODO()] + public double MinorVersion + { + get { return 0.0; } + } + + [MonoTODO()] + public Version MSDomVersion + { + get { return new Version (0, 0); } + } + + [MonoTODO()] + public string Platform + { + get { return "mono::"; } + } + + [MonoTODO()] + public bool Tables + { + get { return true; } + } + + [MonoTODO()] + public string Type + { + get { return "4"; } + } + + [MonoTODO()] + public bool VBScript + { + get { return false; } + } + + [MonoTODO()] + public string Version + { + get { return "4.0"; } + } + + [MonoTODO()] + public bool Win16 + { + get { return false; } + } + + [MonoTODO()] + public bool Win32 + { + get { return true; } + } + + + +} +} |