Example #1
0
 /// <summary>
 /// Initialzes a new instance of the <see cref="InputHtmlFormControl"/> class.
 /// </summary>
 /// <param name="type">
 /// The control type to create.
 /// </param>
 /// <param name="name">
 /// The name of the control.
 /// </param>
 /// <param name="value">
 /// The control value.
 /// </param>
 public InputHtmlFormControl(InputHtmlFormControlType type, string name, string value)
 {
     ControlType = type;
     AddAttribute("name", name);
     AddAttribute("value", value);
 }
 /// <summary>
 /// Initialzes a new instance of the <see cref="InputHtmlFormControl"/> class.
 /// </summary>
 /// <param name="type">
 /// The control type to create.
 /// </param>
 /// <param name="name">
 /// The name of the control.
 /// </param>
 /// <param name="value">
 /// The control value.
 /// </param>
 public InputHtmlFormControl( InputHtmlFormControlType type, string name, string value )
 {
     ControlType = type;
     AddAttribute("name", name);
     AddAttribute("value", value);
 }