Latest Browser Configuration Files

 

Everyone would have been scratching their heads for developing Mobile websites. Some may think it is hectic task for developing Mobile websites. With the introduction of  Microsoft ASP.NET, developing websites for Mobiles devices are made simple.

Two major problems for web developers are based on requested device, redirecting users to the Mobile site or General Site. And, fetching the Browser capabilities.

Both the problems are solved by downloading the latest Browser Configuration files(.browser). Check the following link, to download the latest browser configuration files.

http://stephenwalther.com/blog/archive/2010/03/05/use-asp.net-4-browser-definitions-with-asp.net-3.5.aspx

Once you are done with downloading the Browser Configuration files, copy those file to the App_Browsers directory in your application.

 image

NOTE: Don’t copy the Default.browser file. Since it is already available in the System.

Now, You are done. Happy Coding…!

5 Comments

  1. Thanks. I have only VS2008 SP1. Will just pasting the files to App_Browser directory will make my site mobile compliant? Or is it meant to detect whether request is coming from PC or mobile. Whats the difference between this and if browser.IsmobileDevice code? Sorry, its not clear enough.

    What I’m looking for is to make a website in VS which can target both PC and mobile at the same time, not to make a version for each, that’s time-wasting.

    Any tips on that?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s