locked
Validation on client side in mobile forms RRS feed

  • Question

  • User1940824251 posted

    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

    Wednesday, July 4, 2012 9:25 AM

Answers

  • User1779161005 posted

    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

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, July 4, 2012 10:46 AM
  • User1943143334 posted

    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!

    <meta name="viewport" content="width=device-width" />

    Hope it helps u...

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, July 16, 2012 11:16 AM

All replies

  • User1779161005 posted

    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

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, July 4, 2012 10:46 AM
  • User1943143334 posted

    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!

    <meta name="viewport" content="width=device-width" />

    Hope it helps u...

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, July 16, 2012 11:16 AM