mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-16 17:10:20 -10:00
* *.cs -- Updates from Leen Toelen ([email protected]) svn path=/trunk/mcs/; revision=2142
64 lines
1.2 KiB
C#
Executable File
64 lines
1.2 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 virtual new void RenderAttributes(HtmlTextWriter writer){
|
|
writer.WriteAttribute("name",RenderedName);
|
|
Attributes.Remove("name");
|
|
base.RenderAttributes(writer);
|
|
writer.Write(" /");
|
|
}
|
|
|
|
public string Name{
|
|
get{
|
|
return UniqueID;
|
|
}
|
|
set{}
|
|
}
|
|
|
|
protected virtual string RenderedName{
|
|
get{
|
|
return Name;
|
|
}
|
|
}
|
|
|
|
public string Type{
|
|
get{
|
|
string attr = Attributes["type"];
|
|
if (attr != null){
|
|
return attr;
|
|
}
|
|
return String.Empty;
|
|
}
|
|
}
|
|
|
|
public virtual string Value{
|
|
get{
|
|
string attr = Attributes["value"];
|
|
if (attr != null){
|
|
return attr;
|
|
}
|
|
return String.Empty;
|
|
}
|
|
set{
|
|
Attributes["value"] = AttributeToString(value);
|
|
}
|
|
}
|
|
} // class HtmlInputControl
|
|
} // namespace System.Web.UI.HtmlControls
|
|
|