Search code examples
asp.netwindows-phone-7

How to use ASP.NET Web for Windows phone


I want to create an ASP.NET web site. I have not been using ASP.NET for quite a while and I need help. As you know already there is an IE9 mobile browser for Windows phone, I have these questions:

1) Which version of ASP.NET is supported by the IE 9 mobile browser in Windows phone? I means all the output of html is ok.

2) Can all controls in all versions of ASP.NET be used for the IE9 mobile browser?

3) What di I need to set in the Declaration part < !Doctype.......> in my ASP.NET pages ? Will ASP.NET output it according for IE9 MObile Browser?

4) Does the Div control work ? Will this work Div.html = "........html ...."

5) What should not be used from ASP.NET for the IE 9 mobile browser?

6) How do I make the fontsize bigger or which fontsize is best for Wp screen?

------- Update I have ASP.NET V1.1 with JQuery ( not the latest) , My Windows phone 7 HD7 can not work with the JQuery? Does JQuery have diff version for mobile than ASP.NET?

Any info on what version of Html spit out by ASP.NET V1.1,2.0, to the ASP.NET 4.0??

Using Plain HTML wont help much on the server for many server tasks.

Any resource link on how to build aspnet for windows phone 7 would be appreciated.


Solution

  • See the Web Development for Windows Phone details on MSDN as it provides specific guidance on developing for the phone and details of what is not supported on the phone (but is in the full version of IE9).

    The phone uses the same code base for the rendering and javascript engine as the desktop version of IE9 does so most things should work.
    If you're build a site specifically targetting the phone you will probably see better results if using jQueryMobile rather than the full version but be sure to test fully.

    I'd recommend building a HTML 5 site rather than any (X)HTML 4 variation. The browser supports a lot of the newer functionality and you'll get a cleaner layout as well as backwards compatibility for other devices.

    You'll also find lots of useful relevant articles at http://blogs.msdn.com/b/iemobile/ and http://windowsteamblog.com/windows_phone/b/wpdev/archive/tags/ie9/