Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Re: format of textbox

Reply
Thread Tools

Re: format of textbox

 
 
Kevin Spencer
Guest
Posts: n/a
 
      07-20-2004
Use validation.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"JIM.H." <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello,
> I have a textbox and it should allow users type only number, how can I do

this?
> Thanks,
> Jim.
>
>



 
Reply With Quote
 
 
 
 
=?Utf-8?B?SklNLkgu?=
Guest
Posts: n/a
 
      07-20-2004
I am new at asp.net and visula studio 2003, can you give me an example?


"Kevin Spencer" wrote:

> Use validation.
>
> --
> HTH,
> Kevin Spencer
> ..Net Developer
> Microsoft MVP
> Big things are made up
> of lots of little things.
>
> "JIM.H." <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Hello,
> > I have a textbox and it should allow users type only number, how can I do

> this?
> > Thanks,
> > Jim.
> >
> >

>
>
>

 
Reply With Quote
 
 
 
 
DujHoD
Guest
Posts: n/a
 
      07-21-2004
<asp:TextBox ID="TextBox1" Runat="server" />
<asp:RegularExpressionValidator ControlToValidate="TextBox1"
ValidationExpression="^\d*$"
ErrorMessage="TextBox1 can contain only digits."
Runat="server" />

http://msdn.microsoft.com/library/en...oncontrols.asp
http://msdn.microsoft.com/library/en...torControl.asp


JIM.H. <(E-Mail Removed)> wrote in message news:<(E-Mail Removed)>...
> I am new at asp.net and visula studio 2003, can you give me an example?
>
>
> "Kevin Spencer" wrote:
>
> > Use validation.
> >
> > --
> > HTH,
> > Kevin Spencer
> > ..Net Developer
> > Microsoft MVP
> > Big things are made up
> > of lots of little things.
> >
> > "JIM.H." <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > > Hello,
> > > I have a textbox and it should allow users type only number, how can I do

> this?
> > > Thanks,
> > > Jim.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Format textbox to time format ruca ASP .Net Web Controls 1 05-09-2005 05:09 PM
Calendar popup - using ASP textbox instead of HTML textbox =?Utf-8?B?Q2hyaXM=?= ASP .Net 3 03-30-2005 06:02 PM
runat="server"....a simple html textbox or a webform server textbox...that is the question. Hazzard ASP .Net 2 07-23-2003 07:32 AM
Re: runat="server"....a simple html textbox or a webform server textbox...that is the question. Natty Gur ASP .Net 0 07-22-2003 03:57 AM
Re: VERY STRANGE BUG? Adding a textbox control causes other textbox control to fail??? S. Justin Gengo ASP .Net 0 07-16-2003 06:51 PM



Advertisments