mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 01:41:17 -10:00
* HtmlAnchor.cs: * HtmlButton.cs: * HtmlContainerControl.cs: * HtmlControl.cs: * HtmlForm.cs: * HtmlGenericControl.cs: * HtmlImage.cs: * HtmlInputButton.cs: * HtmlInputCheckBox.cs: * HtmlInputControl.cs: * HtmlInputFile.cs: * HtmlInputHidden.cs: * HtmlInputImage.cs: * HtmlInputRadioButton.cs: * HtmlInputText.cs: * HtmlSelect.cs: * HtmlTable.cs: * HtmlTableCell.cs: * HtmlTableRow.cs: * HtmlTextArea.cs: added almost all missing attributes. svn path=/trunk/mcs/; revision=7740
71 lines
1.5 KiB
C#
Executable File
71 lines
1.5 KiB
C#
Executable File
/* System.Web.UI.HtmlControls
|
|
* Authors
|
|
* Leen Toelen ([email protected])
|
|
*/
|
|
|
|
using System;
|
|
using System.ComponentModel;
|
|
using System.Web;
|
|
using System.Web.UI;
|
|
using System.Globalization;
|
|
|
|
namespace System.Web.UI.HtmlControls
|
|
{
|
|
|
|
public abstract class HtmlInputControl : HtmlControl
|
|
{
|
|
|
|
public HtmlInputControl (string type) : base ("input")
|
|
{
|
|
Attributes ["type"] = type;
|
|
}
|
|
|
|
protected override void RenderAttributes (HtmlTextWriter writer)
|
|
{
|
|
writer.WriteAttribute ("name",RenderedName);
|
|
Attributes.Remove ("name");
|
|
base.RenderAttributes (writer);
|
|
writer.Write (" /");
|
|
}
|
|
|
|
[DefaultValue("")]
|
|
[WebCategory("Behavior")]
|
|
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
|
public virtual string Name
|
|
{
|
|
get { return UniqueID; }
|
|
set { ID = value; } // Is this ok?
|
|
}
|
|
|
|
protected virtual string RenderedName
|
|
{
|
|
get { return Name; }
|
|
}
|
|
|
|
[DefaultValue("")]
|
|
[WebCategory("Behavior")]
|
|
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
|
public string Type
|
|
{
|
|
get {
|
|
string _type = Attributes ["type"];
|
|
return ((_type != null) ? _type : String.Empty);
|
|
}
|
|
}
|
|
|
|
[DefaultValue("")]
|
|
[WebCategory("Appearance")]
|
|
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
|
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
|
|
|