Mobile Controls are the main building blocks of mobile applications.
Mobile Controls are similar to Web Controls in ASP.NET.
The following ASP.NET page displays "Hello W3Schools" as a WML card in a WML enabled cell phone:
The Page directive tells ASP to use (inherit) mobile page handling instead of regular page handling (like the one used for traditional browsers).
The Register directive defines the prefix that will be used for mobile controls. We have used "mob", but you can use any prefix you like.The <mob:Form> element tells the server to create a mobile form control.
The <mob:Label> element tells the server to create a mobile label control with the text "Hello W3Schools".
When the ASP .NET page executes, it will produce the following output to a WAP enabled mobile phone:
and this output will be produced for a Pocket PC:
.NET Mobile will generate WML code for WAP enabled cell phones and HTML code for devices like the Pocket PC.
By detecting the browser, .NET Mobile will output correct content, providing developers with a powerful tool to develop single applications that will serve many different mobile devices.
| WEB HOSTING |
|---|
| Best Web Hosting |
| PHP MySQL Hosting |
| Best Hosting Coupons |
| UK Reseller Hosting |
| Cloud Hosting |
| Top Web Hosting |
| $7.95/mo SEO Hosting |
| Premium Website Design |
| WEB BUILDING |
|---|
| Download XML Editor |
| FREE Website BUILDER |
| Free Website Templates Free CSS Templates |
| Make Your Own Website |
| W3SCHOOLS EXAMS |
|---|
|
Get Certified in: HTML, CSS, JavaScript, XML, PHP, and ASP |
| W3SCHOOLS BOOKS |
|---|
|
New Books: HTML, CSS JavaScript, and Ajax |
| STATISTICS |
|---|
|
Browser Statistics Browser OS Browser Display |
| SHARE THIS PAGE |
|---|