mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 11:21:39 -10:00
* HtmlGenericControl.cs: ConstructorNeedsTag defaults to false so we need to pass true here. Fixes bug #47918. svn path=/trunk/mcs/; revision=17635
45 lines
836 B
C#
45 lines
836 B
C#
//
|
|
// System.Web.UI.HtmlControls.HtmlGenericControl.cs
|
|
//
|
|
// Authors:
|
|
// Bob Smith <[email protected]>
|
|
// Gonzalo Paniagua ([email protected])
|
|
//
|
|
// (C) Bob Smith
|
|
// (c) 2002 Ximian, Inc. (http://www.ximian.com)
|
|
//
|
|
|
|
using System;
|
|
using System.ComponentModel;
|
|
using System.Web;
|
|
using System.Web.UI;
|
|
|
|
namespace System.Web.UI.HtmlControls{
|
|
|
|
[ConstructorNeedsTag(true)]
|
|
public class HtmlGenericControl : HtmlContainerControl {
|
|
public HtmlGenericControl() :
|
|
this ("span")
|
|
{
|
|
}
|
|
|
|
public HtmlGenericControl (string tag) :
|
|
base ()
|
|
{
|
|
if (tag == null)
|
|
tag = "";
|
|
_tagName = tag;
|
|
}
|
|
|
|
[DefaultValue("")]
|
|
[DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
|
|
[WebCategory("Appearance")]
|
|
public new string TagName
|
|
{
|
|
get { return _tagName; }
|
|
set { _tagName = value; }
|
|
}
|
|
}
|
|
}
|
|
|