mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-19 01:31:17 -10:00
* System.Web.UI/Page.cs: for each child control to render, assign Control.Page. Probably also needed in HtmlContainerControl derived classes. * System.Web.UI.HtmlControls/HtmlControl.cs: Render contents moved to new RenderBeginTag method, defined in MS docs. * System.Web.UI.HtmlControls/HtmlForm.cs: Render output when no IE browser. * System.Web.UI.HtmlControls/HtmlInputButton.cs: added constructor without arguments. Xsp used it, though now it always use the other .ctor. * System.Web.UI.HtmlControls/HtmlInputControl.cs: cosmetic changes and implemented set_Name. svn path=/trunk/mcs/; revision=5135
61 lines
1.1 KiB
C#
Executable File
61 lines
1.1 KiB
C#
Executable File
/* System.Web.UI.HtmlControls
|
|
* Authors
|
|
* Leen Toelen ([email protected])
|
|
*/
|
|
|
|
using System;
|
|
using System.Web;
|
|
using System.Web.UI;
|
|
using System.Globalization;
|
|
|
|
namespace System.Web.UI.HtmlControls
|
|
{
|
|
|
|
public class HtmlInputControl : HtmlControl
|
|
{
|
|
|
|
public HtmlInputControl (string type) : base ("type")
|
|
{
|
|
Attributes ["type"] = type;
|
|
}
|
|
|
|
protected override void RenderAttributes (HtmlTextWriter writer)
|
|
{
|
|
writer.WriteAttribute ("name",RenderedName);
|
|
Attributes.Remove ("name");
|
|
base.RenderAttributes (writer);
|
|
writer.Write (" /");
|
|
}
|
|
|
|
public virtual string Name
|
|
{
|
|
get { return UniqueID; }
|
|
set { ID = value; } // Is this ok?
|
|
}
|
|
|
|
protected virtual string RenderedName
|
|
{
|
|
get { return Name; }
|
|
}
|
|
|
|
public string Type
|
|
{
|
|
get {
|
|
string _type = Attributes ["type"];
|
|
return ((_type != null) ? _type : String.Empty);
|
|
}
|
|
}
|
|
|
|
public virtual string Value
|
|
{
|
|
get {
|
|
string attr = Attributes ["value"];
|
|
return ((attr != null) ? attr : String.Empty);
|
|
}
|
|
|
|
set { Attributes["value"] = value; }
|
|
}
|
|
} // class HtmlInputControl
|
|
} // namespace System.Web.UI.HtmlControls
|
|
|