| | |
text box validataion
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
hi,
Its a server side validation control, this control can be used in VB or C# and one more thing u have to mainly specify the Validation Expression in the control property.
Numeric Validation : \d {3,5} -----> d -Numeric Checking, {} - Size
Character Validation : \D {5,10} -----> D - Character Validation, {} - Size.
Regards
Shailu.
Its a server side validation control, this control can be used in VB or C# and one more thing u have to mainly specify the Validation Expression in the control property.
Numeric Validation : \d {3,5} -----> d -Numeric Checking, {} - Size
Character Validation : \D {5,10} -----> D - Character Validation, {} - Size.
Regards
Shailu.
Hi,
I would suggest you to use "MaskedEdit" control from ajax toolkit. here is the link.
http://ajax.asp.net/ajaxtoolkit/Mask...askedEdit.aspx
I would suggest you to use "MaskedEdit" control from ajax toolkit. here is the link.
http://ajax.asp.net/ajaxtoolkit/Mask...askedEdit.aspx
Thanks,
KedarNath Challa
KedarNath Challa
If the intention is only to make the textbox accept only numeric values, just very simply use the Isnumeric function.
that is
Hope this helps.
that is
ASP.NET Syntax (Toggle Plain Text)
if not Isnumeric(textbox.text) then 'do stuff like forcing retyping of content end if
HI,
HOPE THE BELOW LINK WILL HELP READERS A LOT FOR CROSS-BROWSER NUMERIC VALIDATION:
http://shawpnendu.blogspot.com/2009/...isnumeric.html
HOPE THE BELOW LINK WILL HELP READERS A LOT FOR CROSS-BROWSER NUMERIC VALIDATION:
http://shawpnendu.blogspot.com/2009/...isnumeric.html
•
•
Join Date: Nov 2006
Posts: 4
Reputation:
Solved Threads: 0
•
•
•
•
how to make a validation like vb in asp.net? I want to make a text box should only accept numeric values....
samy
First of all you need validation for textbox and you want user to enter only numeric values. So rather than allowing user to enter something and check it whether it is numeric or not is not good approach. I believe prevention is better than cure.
So you can Use FilterTextboxExtender that comes with AjaxToolkit. Please have a look at this demo
I hope this will solve your problem. You can use other tools also, they are very useful.
Happy Programming!!
Regards,
Nil
"If you like me raise your hand, if not raise your standard"
Nil
"If you like me raise your hand, if not raise your standard"
![]() |
Similar Threads
- pass the value to the text box (JavaScript / DHTML / AJAX)
- Text Box Newbie help (Visual Basic 4 / 5 / 6)
- Text box question (C#)
- Text box population from DBgrid. HELP!! (Visual Basic 4 / 5 / 6)
- text is being written in text box (Web Browsers)
- Help with text box height (HTML and CSS)
- Cannot enter any text in a IE text-box (Viruses, Spyware and other Nasties)
Other Threads in the ASP.NET Forum
- Previous Thread: Web form
- Next Thread: populate email with data from database
| Thread Tools | Search this Thread |
.net 2.0 3.5 activexcontrol advice ajax alltypeofvideos asp asp.net bc30451 bottomasp.net browser businesslogiclayer button c# c#gridviewcolumn checkbox class click commonfunctions compatible confirmationcodegeneration content contenttype countryselector courier css dataaccesslayer database datagrid datagridview datagridviewcheckbox datalist deadlock development dgv dropdownlist dropdownmenu edit expose flash flv formatdecimal forms formview gridview homeedition iframe iis javascript jquery list listbox login menu microsoft mono mouse mssql multistepregistration nameisnotdeclared news numerical objects order panelmasterpagebuttoncontrols problem radio ratings rotatepage save schoolproject search security serializesmo.table silverlight smartcard sql sql-server sqlserver2005 suse textbox tracking unauthorized validation vb.net video videos virtualdirectory vista visual-studio visualstudio vs2008 web webarchitecture webdevelopemnt webservice wizard xml youareanotmemberofthedebuggerusers





