KaxInputControlShowButton Property |
Namespace: Kettic.AspNet.Controls
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.
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>