An ASP.NET Blog
I work for Microsoft and help people and businesses make better use of technolgy to realize their full potential. The opinions mentioned herein are solely mine and do not reflect those of my employer.

Mobile Web Forms in Visual Studio 2008

Tuesday, April 01, 2008 5:59 PM

If you have worked with Visual Studio 2008 and tried creating Mobile Web Applications, you would have figured out that the "Mobile Web Form" template is missing.  In the past, in Visual Studio .NET 2003 you had Mobile Web Forms that allow you to create webforms that can be rendered over different types of HTML, WML and XHTML capable devices.

Well, it is not shipped by default in Visual Studio 2008, but Omar Khan from the Web Development Tools Team has put up a few templates that can be downloaded and brings in those Mobile Templates required for creating mobile web applications.

You can download the templates from the Web Development Tools Team Blog Post here  There is a "readme" file attached to each of the extracted Zip folders.  But to make it simpler, once you install and unzip the package, you get a folder "ASP.NET Mobile Templates" and inside that you might find a bunch of folders.

Copy the Zip folders inside each of the "ASP.NET Web Application" Folders into your system's Visual Studio Templates folder.  For instance, there is a folder for "ASP.NET Web Application CS".  You need to copy the contents of this file into

c:\Documents and Settings\<username>\My Documents\Visual Studio 2008\Templates\ItemTemplates\Visual C#

Similarly you would copy the contents of the "VB" folder into the Visual Basic folder under "ItemTemplates" above.

Once you copy these and restart Visual Studio 2008, you would be able to get the "Mobile Web Form", "Mobile Web User Control" and "Mobile Web Configuration File" under "My Templates" in "Add New Item" Wizard.

Cheers !!!


Feedback

# re: Mobile Web Forms in Visual Studio 2008

First off, this was really helpful, and got me up and running quickly to develop a mobile web app in .Net. THANK YOU!!

I had a question:

Are there known issues with the mobile controls and browsers on Palm devices? I have a very simple page that does not render on either a Palm Centro or Treo 650, but is fine on a BlackBerry Pearl and several Windows devices.

Thanks for any help!!
Matt

5/5/2008 11:03 AM | Matt

# re: Mobile Web Forms in Visual Studio 2008

When i unzip the mail ZIP file which is "ASP.NET Mobile Templates.zip" i got 3 zip files inside which are "Mobile Web Form_vb.zip", "Mobile Web User Control_vb.zip" and "Mobile Web Configuration File_vb.zip".

Do i need to unzip all the zip file and copy to the template folder or any one of those?? 5/27/2008 9:55 PM | jimmy

Post a comment





 

Please add 1 and 8 and type the answer here: