Files
mono/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlGenericControl.cs
T
Gonzalo Paniagua Javier 50b945fca5 2003-01-29 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpRequest.cs: added BaseVirtualDir property and use it
	in MapPath.

	* System.Web.UI.HtmlControls/HtmlControl.cs: _tagName is now internal.
	* System.Web.UI.HtmlControls/HtmlGenericControl.cs: use the field in
	HtmlControl to keep the tag name.

	* System.Web.Util/UrlUtils.cs: fixed Combine ().

svn path=/trunk/mcs/; revision=11027
2003-01-29 19:16:39 +00:00

45 lines
830 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]
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; }
}
}
}