Files
mono/mcs/class/System.Web/System.Web.UI.WebControls/TextBox.cs
T
Gaurav Vaish dc81c9a2d0 2002-01-26 Gaurav Vaish <[email protected]>
* TextBox.cs   -- Started off.
* ChangeLog, TODO  -- Updated properly

svn path=/trunk/mcs/; revision=2173
2002-01-26 13:27:18 +00:00

88 lines
1.4 KiB
C#

/**
* Namespace: System.Web.UI.WebControls
* Class: TextBox
*
* Author: Gaurav Vaish
* Maintainer: [email protected]
* Contact: <[email protected]>, <[email protected]>
* Implementation: yes
* Status: 10%
*
* (C) Gaurav Vaish (2002)
*/
using System;
using System.Web;
using System.Web.UI;
namespace System.Web.UI.WebControls
{
public class TextBox : WebControl, IPostBackDataHandler
{
public TextBox(): base(HtmlTextWriterTag.Input)
{
}
public virtual bool AutoPostBack
{
get
{
object o = ViewState["AutoPostBack"];
if(o!=null)
return (bool)o;
return false;
}
set
{
ViewState["AutoPostBack"] = value;
}
}
public virtual int Columns
{
get
{
object o = ViewState["Columns"];
if(o != null)
return (int)o;
return 0;
}
set
{
ViewState["Columns"] = value;
}
}
public virtual int MaxLength
{
get
{
object o = ViewState["MaxLrngth"];
if(o != null)
return (int)o;
return 0;
}
set
{
ViewState["MaxLrngth"] = value;
}
}
public virtual bool ReadOnly
{
get
{
object o = ViewState["ReadOnly"];
if(o != null)
return (bool)o;
return false;
}
set
{
ViewState["ReadOnly"] = value;
}
}
}
}