Basically the same as in any other web app. You can use client-side javascript but you also always want to re-validate on the server for security reasons.
Also, in some mobile devices you can also use the newer<input> types, such as number, date, email, url, etc.
praveen.k
Member
127 Points
209 Posts
Validation on client side in mobile forms
Jul 04, 2012 01:25 PM|LINK
Hello Everyone,
I have been working with asp.net since 2 years and new to mobile forms. I feel very uncomfortable working with them.
I have couple of issues for now and they are
1. How can a textbox validated on client side in mobileforms?
2. How can a buttion (command) control can be disabled ?
Any help could be appriciated.
Thanks
Praveen
BrockAllen
All-Star
27574 Points
4912 Posts
MVP
Re: Validation on client side in mobile forms
Jul 04, 2012 02:46 PM|LINK
Basically the same as in any other web app. You can use client-side javascript but you also always want to re-validate on the server for security reasons.
Also, in some mobile devices you can also use the newer<input> types, such as number, date, email, url, etc.
http://www.456bereastreet.com/archive/201004/html5_input_types/
http://msdn.microsoft.com/en-us/magazine/hh547102.aspx
DevelopMentor | http://www.develop.com
thinktecture | http://www.thinktecture.com/
roopeshreddy
All-Star
20155 Points
3328 Posts
Re: Validation on client side in mobile forms
Jul 16, 2012 03:16 PM|LINK
Hi,
First of all, Mobile web forms are depreciated!
You can go ahead and use general ASP.NET WebForms application, which works absolutely fine in all Mobile browsers!
Just add the following META tag, to make the website mobile compatible!
Hope it helps u...
Roopesh Reddy C
Roopesh's Space