What do I need to know to make my site work in mobile browsers?

I am using ASP.NET 3.5 with Visual Studio 2008. I have several questions related to my site and mobile users.

  • Will my site be displayed on a mobile phone?
  • What elements will not work on a mobile device (I know that the problem may be problematic?)
  • What advice can you give me so that my site works 100% on a mobile device?

Thanks in advance!

+3
source share
5 answers

head:

<%@ Page Language="C#" ContentType="application/xhtml+xml"%> <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > 

The page should be 100% valid: use &amp; instead of & and <br/> instead of <br> and so on. Do not use external css files, it must be inline. Do not use javascript.

0
source

make a mobile site that you should look at:

  • scaling, of course, make sure that everything fits and each text will be repeated.
  • Flash - issue: s
  • Do not forget to try the multimobile borsor (IE, OPERA, ....)
  • Do not place large images, otherwise the download will be slow and will still not scale.
  • You can check out Microsoft Best Practices for Mobile Developers
  • If your site uses automatic text field implementations, it’s painful for some devices to write on a mobile website.

I will add a little later, hope this helps

0
source

1- No, it will not.

2-, which depend on the OS version on mobile devices

3- you need to create a mobile application from the very beginning, using mobile controls and Mobile web form (form for mobile web applications) instead of a web form.

all of these controls are under this namespace:

 using System.Web.UI.MobileControls; 

This will allow your application to run on more than 200 types of mobile devices.

0
source

One of the podcasts by Scott Hanselman talked about the Mobile Device Browser File for ASP.Net . This is a file containing download information for various mobile devices and browsers. For example, you can check whether the mobile device connecting to your site supports cookies, or find out its screen size, etc.

I have never been involved in mobile development, but it looks like it can be very useful.

Here on CodePlex: http://mdbf.codeplex.com/

0
source

All Articles