TEXTBOX CONTROL IN ASP.NET

TEXTBOX CONTROL IN ASP.NET


The TextBox control is the most useful web server control in ASP.NET.


The TextBox control is a rectangular box used to input data. In simple terms, a textbox is a place where users can input some text on an asp.net webform. To use the textbox on the page, we can write code or drag and drop from the toolbox.


Syntax of ASP.Net TextBox


<asp:TextBox ID=”TextBox1″ runat=”server”></asp:TextBox>{codeBox}



Property name

Description

ID

Identification name of the textbox control

Text

It is used to display text in a control.

BackColor

This is used to set the background color of the textbox control.

color

This is used to set the text color of the control.

ToolTip

It displays a text on the control when the mouse is moved over it.

TabIndex

It is used to manage the tab order of the control.

CssClass

This is used to implement a class by CSS on the control.

Enable

true/false - used to enable or disable a control.

Visible

true/false – It is used to hide or visible control on a web page.

MaxLength

This property is used to determine how many characters can be input into a textbox control.

TextMode

This property is used to change the behavior of a textbox control, such as what can be inputted into that textbox, a line, several lines, or a password.

ReadOnly

This property is used to turn the textbox control read-only property on or off.


AKASH TIMES

I AM AN ENGINEER BY PROFESSION BUT BLOGGER IS MY OLD DAYS DREAM TO CREATE MY OWN SITE FOR THOSE WHO ARE CURIOUS ABOUT MY BIRTHPLACE THEN I AM COMING FROM (INDIA). THE CURRENT CITY LIVES IN NAVI MUMBAI, INDIA

Post a Comment

IF YOU HAVE ANY PROBLEM PLEASE FELL FREE TO CONTACT US BY - AKASH TIMES

PREVIOUS POST NEXT POST