NUMERIC ONLY TEXT BOX

acceptableseashoreSecurity

Nov 5, 2013 (3 years and 11 months ago)

74 views

ASP.Net

NUMERIC ONLY TEXT
BOX

ASP.Net

2

Tuesday, November 05, 2013

Contents

A. Problem

B. Solution


ASP.Net

3

Tuesday, November 05, 2013

A. Problem


Create a text box that only allows user to input
numeric to it


ASP.Net

4

Tuesday, November 05, 2013

B. Solution


1. Creating new project


2. Defining numeric only text box


3. Adding web site using numeric only text box


4. Running & testing

ASP.Net

1. Creating new project

ASP.Net


ASP.Net


By default, we have a text:

ASP.Net

2. Defining numeric only text box


ASP.Net

ASP.Net

3. Adding web site using this text box


ASP.Net


ASP.Net


Click and
drag numeric
only test box
to web form

ASP.Net

4. Running & testing



Only run good in IE but in other browsers.

ASP.Net

USING EXISTING
NUMERIC ONLY TEXT
BOX

ASP.Net

15

Tuesday, November 05, 2013

Contents

A. Problem

B. Solution


ASP.Net

16

Tuesday, November 05, 2013

A. Problem


Using an existing numeric text box in a web
site


ASP.Net

17

Tuesday, November 05, 2013

B. Solution


1. Opening a web site


2. Adding custom server control in tool box


3. Using numeric only text box


4. Running & testing

ASP.Net

1. Opening a web site


ASP.Net

2. Adding custom server control in tool box


Right click to tool box
and click to “Add Tab”


type “Custom Web server
control”

ASP.Net


Right click to “Custom web server controls


“choose items…”

ASP.Net


ASP.Net

3. Using numeric only text box


Two controls will
appear in tool box


Click it and drag to
web form

ASP.Net

4. Running & testing