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:
-rw-r--r--mcs/class/System.Web/ChangeLog9
-rw-r--r--mcs/class/System.Web/System.Web.UI.HtmlControls/ChangeLog8
-rw-r--r--mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlForm.cs22
-rwxr-xr-xmcs/class/System.Web/System.Web.UI.HtmlControls/HtmlInputImage.cs2
-rwxr-xr-xmcs/class/System.Web/System.Web.UI/Page.cs228
-rwxr-xr-xmcs/class/System.Web/System.Web.UI/ValidatorCollection.cs62
-rw-r--r--mcs/class/System.Web/System.Web.build2
7 files changed, 320 insertions, 13 deletions
diff --git a/mcs/class/System.Web/ChangeLog b/mcs/class/System.Web/ChangeLog
index 0a6eaee82c9..4a459c3cf3d 100644
--- a/mcs/class/System.Web/ChangeLog
+++ b/mcs/class/System.Web/ChangeLog
@@ -1,3 +1,12 @@
+2002-05-10 Duncan Mak <duncan@ximian.com>
+
+ * System.Web.build: Include the System.Web.UI.HtmlControls namespace.
+
+ * Page.cs:
+ * ValidatorCollection.cs: Stubs to make things compile for
+ now. Added one dummy method (RegisterClientScriptFile) that's used
+ in the existing codebase, but not in MS docs.
+
2002-04-26 Lawrence Pit <loz@cable.a2000.nl>
* Added directory: System.Web.Mail
diff --git a/mcs/class/System.Web/System.Web.UI.HtmlControls/ChangeLog b/mcs/class/System.Web/System.Web.UI.HtmlControls/ChangeLog
index e112d3be38a..92478d12eda 100644
--- a/mcs/class/System.Web/System.Web.UI.HtmlControls/ChangeLog
+++ b/mcs/class/System.Web/System.Web.UI.HtmlControls/ChangeLog
@@ -1,3 +1,11 @@
+2002-05-10 Duncan Mak <duncan@ximian.com>
+
+ * HtmlInputImage.cs (OnServerClick): Commented out parts that
+ won't compile.
+
+ * HtmlForm.cs (RenderAttributes):
+ (RenderChildren): Commented out code that doesn't compile.
+
2002-05-07 Duncan Mak <duncan@ximian.com>
* HtmlSelect.cs (TrackViewState): Added 'new' keyword to avoid
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 5cd4d2e7e81..af583f3be5f 100644
--- a/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlForm.cs
+++ b/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlForm.cs
@@ -23,15 +23,15 @@ namespace System.Web.UI.HtmlControls{
writer.WriteAttribute("action",Action,true);
Attributes.Remove("action");
- string clientOnSubmit = Page.ClientOnSubmitEvent;
- if (clientOnSubmit != null && clientOnSubmit.Length > 0){
- if (Attributes["onsubmit"] != null){
- clientOnSubmit = String.Concat(clientOnSubmit,Attributes["onsubmit"]);
- Attributes.Remove("onsubmit");
- }
- writer.WriteAttribute("language","javascript");
- writer.WriteAttribute("onsubmit",clientOnSubmit);
- }
+// string clientOnSubmit = Page.ClientOnSubmitEvent;
+// if (clientOnSubmit != null && clientOnSubmit.Length > 0){
+// if (Attributes["onsubmit"] != null){
+// clientOnSubmit = String.Concat(clientOnSubmit,Attributes["onsubmit"]);
+// Attributes.Remove("onsubmit");
+// }
+// writer.WriteAttribute("language","javascript");
+// writer.WriteAttribute("onsubmit",clientOnSubmit);
+// }
if (ID == null){
writer.WriteAttribute("id",ClientID);
}
@@ -57,9 +57,9 @@ namespace System.Web.UI.HtmlControls{
}
protected override void RenderChildren(HtmlTextWriter writer){
- Page.OnFormRender(writer,ClientID);
+ // Page.OnFormRender(writer,ClientID);
base.RenderChildren(writer);
- Page.OnFormPostRender(writer,ClientID);
+ // Page.OnFormPostRender(writer,ClientID);
}
protected override void OnInit(EventArgs e){
diff --git a/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlInputImage.cs b/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlInputImage.cs
index 3ac74919160..a8a45da640d 100755
--- a/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlInputImage.cs
+++ b/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlInputImage.cs
@@ -26,7 +26,7 @@ namespace System.Web.UI.HtmlControls{
protected void OnServerClick(ImageClickEventArgs e){
ImageClickEventHandler handler = (ImageClickEventHandler) Events[EventServerClick];
- if (handler != null) handler.Invoke(this, e);
+ // if (handler != null) handler.Invoke(this, e);
}
protected override void RenderAttributes(HtmlTextWriter writer){
diff --git a/mcs/class/System.Web/System.Web.UI/Page.cs b/mcs/class/System.Web/System.Web.UI/Page.cs
new file mode 100755
index 00000000000..5b7652f0566
--- /dev/null
+++ b/mcs/class/System.Web/System.Web.UI/Page.cs
@@ -0,0 +1,228 @@
+//
+// System.Web.UI.Page.cs
+//
+// Duncan Mak (duncan@ximian.com)
+//
+// (C) Ximian, Inc.
+//
+
+using System;
+using System.Collections;
+using System.Security.Principal;
+using System.Web;
+
+namespace System.Web.UI {
+
+ public class Page : TemplateControl, IHttpHandler
+ {
+
+ #region Constructor
+ public Page ()
+ {
+ }
+
+ #endregion
+
+ #region Fields
+// protected const string postEventArgumentID;
+// protected const string postEventSourceID;
+
+ #endregion
+
+ #region Properties
+
+ public HttpApplicationState Application {
+ get { throw new NotImplementedException (); }
+ }
+
+ bool AspCompatMode {
+ set { throw new NotImplementedException (); }
+ }
+
+ bool Buffer {
+ set { throw new NotImplementedException (); }
+ }
+
+// public Cache Cache {
+// get { throw new NotImplementedException (); }
+// }
+
+ public string ClientTarget {
+ get { throw new NotImplementedException (); }
+ set { throw new NotImplementedException (); }
+ }
+
+ int CodePage {
+ set { throw new NotImplementedException (); }
+ }
+
+ string ContentType {
+ set { throw new NotImplementedException (); }
+ }
+
+ protected override HttpContext Context {
+ get { throw new NotImplementedException (); }
+ }
+
+ string Culture {
+ set { throw new NotImplementedException (); }
+ }
+
+ public override bool EnableViewState {
+ get { throw new NotImplementedException (); }
+ set { throw new NotImplementedException (); }
+ }
+
+// public override bool EnableViewStateMac {
+// get { throw new NotImplementedException (); }
+// set { throw new NotImplementedException (); }
+// }
+
+ public string ErrorPage {
+ get { throw new NotImplementedException (); }
+ set { throw new NotImplementedException (); }
+ }
+
+ ArrayList FileDependencies {
+ set { throw new NotImplementedException (); }
+ }
+
+ public override string ID {
+ get { throw new NotImplementedException (); }
+ set { throw new NotImplementedException (); }
+ }
+
+ public bool IsPostBack {
+ get { throw new NotImplementedException (); }
+ }
+
+ public bool IsReusable {
+ get { throw new NotImplementedException (); }
+ }
+
+ public bool IsValid {
+ get { throw new NotImplementedException (); }
+ }
+
+ int LCID {
+ set { throw new NotImplementedException (); }
+ }
+
+ public HttpRequest Request {
+ get { throw new NotImplementedException (); }
+ }
+
+ public HttpResponse Response {
+ get { throw new NotImplementedException (); }
+ }
+
+ string ResponseEncoding {
+ set { throw new NotImplementedException (); }
+ }
+
+ public HttpServerUtility Server {
+ get { throw new NotImplementedException (); }
+ }
+
+ public virtual HttpSessionState Session {
+ get { throw new NotImplementedException (); }
+ }
+
+ public bool SmartNavigation {
+ get { throw new NotImplementedException (); }
+ set { throw new NotImplementedException (); }
+ }
+
+ public TraceContext Trace {
+ get { throw new NotImplementedException (); }
+ }
+
+ bool TraceEnabled {
+ set { throw new NotImplementedException (); }
+ }
+
+ TraceMode TraceModeEncoding {
+ set { throw new NotImplementedException (); }
+ }
+
+ int TransactionMode {
+ set { throw new NotImplementedException (); }
+ }
+
+ string UICulture {
+ set { throw new NotImplementedException (); }
+ }
+
+ public IPrincipal User {
+ get { throw new NotImplementedException (); }
+ }
+
+ public ValidatedCollection Validators {
+ get { throw new NotImplementedException (); }
+ }
+
+ public override bool Visible {
+ get { throw new NotImplementedException (); }
+ set { throw new NotImplementedException (); }
+ }
+
+ #endregion
+
+ #region Methods
+
+ public string GetPostBackClientEvent (Control control, string argument)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public string GetPostBackClientHyperlink (Control control, string argument)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public string GetPostBackEventReference (Control control)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public string GetPostBackEventReference (Control control, string argument)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public void ProcessRequest (HttpContext context)
+ {
+ throw new NotImplementedException ();
+ }
+
+ //
+ // Wacky temporary API for making it to compile
+ //
+ public void RegisterClientScriptFile (string a, string b, string c)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public void RegisterRequiresPostBack (Control control)
+ {
+ }
+
+ public void RegisterRequiresRaiseEvent (IPostBackEventHandler control)
+ {
+ }
+
+ public void RegisterViewStateHandler ()
+ {
+ }
+
+ public virtual void Validate ()
+ {
+ }
+
+ public virtual void VerifyRenderingInServerForm (Control control)
+ {
+ }
+
+ #endregion
+ }
+}
diff --git a/mcs/class/System.Web/System.Web.UI/ValidatorCollection.cs b/mcs/class/System.Web/System.Web.UI/ValidatorCollection.cs
new file mode 100755
index 00000000000..e83bae21149
--- /dev/null
+++ b/mcs/class/System.Web/System.Web.UI/ValidatorCollection.cs
@@ -0,0 +1,62 @@
+//
+// System.Web.UI.ValidatorCollection.cs
+//
+// Duncan Mak (duncan@ximian.com)
+//
+// (C) Ximian, Inc.
+
+using System;
+using System.Collections;
+
+namespace System.Web.UI {
+
+ public sealed class ValidatedCollection : ICollection, IEnumerable
+ {
+
+ public ValidatedCollection ()
+ {
+ }
+
+ public int Count {
+ get { return 1; }
+ }
+
+ public bool IsReadOnly {
+ get { return false; }
+ }
+
+ public bool IsSynchronized {
+ get { return false; }
+ }
+
+ public IValidator this [int index] {
+ get { return null; }
+ }
+
+ public object SyncRoot {
+ get { return null; }
+ }
+
+ public void Add (IValidator validator)
+ {
+ }
+
+ public bool Contains (IValidator validator)
+ {
+ return false;
+ }
+
+ public void CopyTo (Array array, int index)
+ {
+ }
+
+ public IEnumerator GetEnumerator ()
+ {
+ return null;
+ }
+
+ public void Remove (IValidator validator)
+ {
+ }
+ }
+}
diff --git a/mcs/class/System.Web/System.Web.build b/mcs/class/System.Web/System.Web.build
index 2fd7bb70d8e..112f6c85428 100644
--- a/mcs/class/System.Web/System.Web.build
+++ b/mcs/class/System.Web/System.Web.build
@@ -25,7 +25,7 @@
<excludes name="System.Web.Hosting/IAppDomainFactory.cs"/>
<excludes name="System.Web.Hosting/AppDomainFactory.cs"/>
<!--<excludes name="System.Web.UI/**"/>-->
- <excludes name="System.Web.UI.HtmlControls/**"/>
+ <!--<excludes name="System.Web.UI.HtmlControls/**"/>-->
<!--<excludes name="System.Web.UI.WebControls/**"/>-->
<excludes name="System.Web/HttpCacheValidateHandler.cs"/>
</sources>