Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_beginners thread: int or string? and size of textbox


Message #1 by soni29@h... on Thu, 2 May 2002 21:54:52
hi,
I had 3 questions, all regarding textboxes:

1) Is there any way to find out if the data entered into a textbox is of 
type string?

2) Is there any way to find out if the data entered into a textbox is of 
type int? 

Those 2 are to make sure that the user has entered int when int is 
expected and string when string is expected.

3) Is there any way to limit the size of a textbox, not just the size.  
What i want is a textbox 2 columns in size, that will NOT let the user 
enter in more than 2 characters, i know how to make a 2 column box but how 
do i stop the user from entering in more than 2 characters into it?

Thanks.

  Return to Index