473,797 Members | 2,926 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.do t.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 1972
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****@microsof t.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.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: 207.224.37.241
| Lines: 1
| Path: TK2MSFTNGHUB02. phx.gbl!TK2MSFT NGP01.phx.gbl!T K2MSFTNGP03.phx .gbl
| Xref: TK2MSFTNGHUB02. phx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:7608 1
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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.do t.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.c om...
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.do t.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.d ot.net
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com

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

david@at******@ windward.dot.do t.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
4757
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 important part ... also work with backgrounds in other tags. I fail to see any wisdom in making SVG different than say PNG (of course the implementation of the rendering code would obvious be different). --
0
1284
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 commercially? 2. When we develop a mobile web application, can the application also be accessed using a desktop other than the mobile devices, PDAs etc 3. Is there a difference between compact devices and mobile devices. Do we have to take care of this...
4
2481
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
5167
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 tab and form feed produce a predictable and consistent (among different devices) behaviour. So what are these devices and what is the behaviour ? For old printers , form feed presumably moves to the next page but vertical tab is a mystery to me.
3
2535
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 difficult for me to create more than one login page. In my web.config file I have it set so that unauthenticated users will be directed to the default.aspx page which handles logging in. As part of the default.aspx Page_Load I transfer users to a...
1
2376
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 result we have re-built the application in VS2005 with .NET 2.0. We can deploy the application to the mobile device OK via active-synch. However as our mobile devices are widely distributed the normal way of loading the application is to FTP...
5
2346
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 devices when regular ASP.NET pages can be accessed from mobile devices? Ron
2
1594
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 continue using that if possible. Anyway, I would like to know what people would recommend for developing mobile applications which can run on Windows Mobile and Mac OS X (iPhone etc)? It would also be cool if the same apps could run where possible (or...
1
2846
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 for mobile devices using regular ASP.NET controls after giving up on "Mobile Web Forms" for several reasons. Two problems. LinkButton ========
0
9536
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10468
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10245
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10205
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10021
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9063
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6802
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5458
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3748
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.