Click or drag to resize
KaxInputControlLabel Property
Gets or sets the text of the tag rendered along with KaxInput control.

Namespace: Kettic.AspNet.Controls
Assembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax
public virtual string Label { get; set; }

Property Value

Type: String
A string used as a label for the control. The default value is empty string ("").
Remarks
If the value of this property has not been set, a tag will not be rendered. Keep in mind that accessibility standards require labels for all input controls.
Examples

The following code example demonstrates how to use the Label property:

            </%@ Page Language="C#" AutoEventWireup="True" /%>  
</%@ Register Assembly="KaxInput.Net2" Namespace="Kettic.AspNetControls" TagPrefix="kaxI" /%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>KaxTextBox Example </title>

<script runat="server">


protected void KaxTextBox1_TextChanged(object sender, EventArgs e)
{
this.KaxTextBox1.Label = this.KaxTextBox1.Text;
}
</script>

</head>
<body>
<form id="form1" runat="server">
<h3>
KaxTextBox Example
</h3>
<kaxI:KaxTextBox ID="KaxTextBox1" AutoPostBack="true" EmptyMessage="Type Here" Label="Default Label: " runat="server" OnTextChanged="KaxTextBox1_TextChanged">
</kaxI:KaxTextBox>

</form>
</body>
</html>
See Also