Click or drag to resize
KaxInputControlShowButton Property
Gets or sets a value indicating whether the button is displayed in the 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 bool ShowButton { get; set; }

Property Value

Type: Boolean
true if the button is displayed; otherwise, false. The default value is true, however this property is only examined when the ButtonTemplate property is not a null reference (Nothing in Visual Basic).
Remarks

Use the ShowButton property to specify whether the button is displayed in the KaxInput control.

The contents of the button are controlled by the ButtonTemplate property.

Examples

The following code example demonstrates how to use the ShowButton property to display the button in the KaxInput control.

            </%@ Page Language="C#" /%>    
</%@ 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 xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>Untitled Page</title>
<script language="javascript" type="text/javascript">
function Click(sender)
{
alert("click");
}
</script>
</head>
<body>
<form id="form1" runat="server">
<kaxI:KaxTextBox ShowButton="true" ID="KaxNumericTextBox1" runat="server">
<ClientEvents OnButtonClick="Click" />
<ButtonTemplate>
<input type="button" value="click here" />
</ButtonTemplate>
</kaxI:KaxTextBox>
</form>
</body>
</html>
See Also