<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TestNumericTextBox.aspx.cs" Inherits="TestNumericTextBox" %> <%@ Register Assembly="ncToolControls" Namespace="ncToolControls" TagPrefix="nc" %> <!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 runat="server"> <title></title> </head> <body> <form id="form1" runat="server"> <div> <p align="center">Cash Value: <nc:NumbericTextBox ID="txtCash" Width="60px" runat="server"></nc:NumbericTextBox> </p> <p align="center">Check Value: <nc:NumbericTextBox ID="txtChkNum" Width="60px" runat="server"></nc:NumbericTextBox> </p> <p align="center"><asp:Button ID="butSubmit" Text="Submit" OnClick="butSubmit_Click" runat="server" /></p> </div> </form> </body> </html>
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class TestNumericTextBox : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void butSubmit_Click(object sender, EventArgs e) { Response.Write(this.txtCash.Text); Response.Write("<br/>" + this.txtChkNum.Text); } }
Trouble logging in? Simply enter your email address OR username in order to reset your password.
For faster and more reliable delivery, add support@netstaircom.net to your trusted senders list in your email software.