473,396 Members | 1,997 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

IIS question - feed different index.htm page for mobile devices

Hi;

This is for a website that is just html pages, no ASP.NET. I want the
default page to be a different page if it's a mobile device. I can do
this in ASP.NET by looking at the browser size and redirecting. But is
there a way in IIS to point it to different page(s) for mobile
devices?

thanks - dave

david@at******@windward.dot.dot.net
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com

Cubicle Wars - http://www.windwardreports.com/film.htm
Sep 16 '08 #1
4 1951
Hi Dave,

==================================================
But is there a way in IIS to point it to different page(s) for mobile
devices?
==================================================

As far as I know IIS does't support this currently. In ASP.NET we can check
Request.Browser to know if the request is from a mobile device.

Regards,
Allen Chen
Microsoft Online Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subs...#notifications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://support.microsoft.com/select/...tance&ln=en-us.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| From: David Thielen <th*****@nospam.nospam>
| Subject: IIS question - feed different index.htm page for mobile devices
| Date: Mon, 15 Sep 2008 22:39:02 -0600
| Reply-To: th*****@nospam.nospam
| Message-ID: <a0********************************@4ax.com>
| X-Newsreader: Forte Agent 2.0/32.652
| MIME-Version: 1.0
| Content-Type: text/plain; charset=us-ascii
| Content-Transfer-Encoding: 7bit
| X-Antivirus: avast! (VPS 080915-0, 09/15/2008), Outbound message
| X-Antivirus-Status: Clean
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: 207.224.37.241
| Lines: 1
| Path: TK2MSFTNGHUB02.phx.gbl!TK2MSFTNGP01.phx.gbl!TK2MSF TNGP03.phx.gbl
| Xref: TK2MSFTNGHUB02.phx.gbl
microsoft.public.dotnet.framework.aspnet:76081
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Hi;
|
| This is for a website that is just html pages, no ASP.NET. I want the
| default page to be a different page if it's a mobile device. I can do
| this in ASP.NET by looking at the browser size and redirecting. But is
| there a way in IIS to point it to different page(s) for mobile
| devices?
|
| thanks - dave
|
| david@at******@windward.dot.dot.net
| Windward Reports -- http://www.WindwardReports.com
| me -- http://dave.thielen.com
|
| Cubicle Wars - http://www.windwardreports.com/film.htm
|

Sep 16 '08 #2
"David Thielen" <th*****@nospam.nospamwrote in message
news:a0********************************@4ax.com...
Hi;

This is for a website that is just html pages, no ASP.NET. I want the
default page to be a different page if it's a mobile device. I can do
this in ASP.NET by looking at the browser size and redirecting. But is
there a way in IIS to point it to different page(s) for mobile
devices?

What version of IIS?

You might be able to find a URL rewriter that will allow you to query the
headers.

If IIS7 you could use the integrated pipeline to create a .NET module to
handle this rewriting.

--
Anthony Jones - MVP ASP/ASP.NET

Sep 16 '08 #3
in iis this is done with an isapi filter. pre iis 7.0, these must be
written in c/c++ (though its pretty simple code)

-- bruce (sqlwork.com)
David Thielen wrote:
Hi;

This is for a website that is just html pages, no ASP.NET. I want the
default page to be a different page if it's a mobile device. I can do
this in ASP.NET by looking at the browser size and redirecting. But is
there a way in IIS to point it to different page(s) for mobile
devices?

thanks - dave

david@at******@windward.dot.dot.net
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com

Cubicle Wars - http://www.windwardreports.com/film.htm
Sep 16 '08 #4
Thank you everyone.

I think the easiest way is to just create a small ASP.NET app to do
this - that's fast and I know how to do that. I just wanted to check
in case IIS had a redirect for mobile built in.

thanks - dave
On Mon, 15 Sep 2008 22:39:02 -0600, David Thielen
<th*****@nospam.nospamwrote:
>Hi;

This is for a website that is just html pages, no ASP.NET. I want the
default page to be a different page if it's a mobile device. I can do
this in ASP.NET by looking at the browser size and redirecting. But is
there a way in IIS to point it to different page(s) for mobile
devices?

thanks - dave

david@at******@windward.dot.dot.net
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com

Cubicle Wars - http://www.windwardreports.com/film.htm

david@at******@windward.dot.dot.net
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com

Cubicle Wars - http://www.windwardreports.com/film.htm
Sep 16 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

61
by: phil-news-nospam | last post by:
Why does SVG need a different tag than other images? IMHO, SVG should be implemented as an image type just like any other image type, allowing it to work with <img> tags, and ... here is the...
0
by: ASMJ | last post by:
Hi, I am new to the mobile web applications and want to know a few things regarding this. 1. Can we develop mobile web applications using Visual Web Developer express edition? and use it...
4
by: Pratheep | last post by:
Hi, Can I compile code for mobile devices (Window Mobile 2005) using C# Express or do I need the full version of C# for mobile devices? thanks, Pratheep
3
by: Spiros Bousbouras | last post by:
The fact that vertical tab and form feed exist both in the basic source character set and the basic execution character set suggests to me that there is a class of display devices where vertical...
3
by: Sleepwalker | last post by:
Hi, I'm currently working on creating a stripped down part of a company web page, that will be accessed from cellphone. The problem I have is that the Windows Forms authentication makes it...
1
by: Sharky Ward | last post by:
We have a C# windows mobile form application designed for PockedtPC 2003 developed in VS2003.NET with .NET 1.0/1.1. Some of the mobile devices have been replaced with Windows Mobile 5.0. As a...
5
by: rn5a | last post by:
I've come across numerous mobile phones with which ASP.NET pages can be accessed on the Internet. Then why has Microsoft developed a separate programming model to create ASP.NET apps for mobile...
2
by: rodmc | last post by:
Hi, I have been scouting around online for information on how to use Python and a GUI toolikit to develop mobile devices. At present I am using wxPython for desktop apps and would like to...
1
by: David C | last post by:
I have posted this question, which I think is very simple on several sites, and nobody seems to know what I am talking about. At my wits end here. Please help. I am putting together a site...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.