CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2008
    Location
    India
    Posts
    46

    Exclamation User-Agent Detection And IIS Plugin

    Hi gurus,
    I have a site developed in php
    Now here I want to develop a "mobile-friendly module" (a plugin-in for IIS) using dotnet which will detect the mobile-user-agent & non-mobile-user-agent
    ..
    How can I do this task..
    How do I write a plugin for IIS which will execute first before actually showing the website.

    For eg :-
    my website:- www.example.com

    When a user hits this website, a plugin shud come in picture which will give me the results about the user-agent

  2. #2
    Join Date
    Dec 2003
    Location
    Northern Ireland
    Posts
    1,362

    Re: User-Agent Detection And IIS Plugin

    You don't need to write a plugin.

    Get WURFL into your app:
    http://wurfl.sourceforge.net/php/

    Hope this helps
    Last edited by HairyMonkeyMan; August 14th, 2008 at 08:16 AM.
    Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rich Cook


    0100 1101 0110 1001 0110 0011 0110 1000 0110 0001 0110 0101 0110 1100 0010 0000 0100 0101 0110 1100 0110 1100 0110 0101 0111 0010

  3. #3
    Join Date
    Jun 2008
    Location
    India
    Posts
    46

    Exclamation Re: User-Agent Detection And IIS Plugin

    and what if the website is developed in dotnet
    I dont want to touch the website for detecting the user-agent and then handling the database processing wrt to it

    Need to write a module which wud run before actually showing the website..

  4. #4
    Join Date
    Dec 2003
    Location
    Northern Ireland
    Posts
    1,362

    Re: User-Agent Detection And IIS Plugin

    There is also a dotnet version of wurfl. You could write a plugin with this if thats what you need.
    Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rich Cook


    0100 1101 0110 1001 0110 0011 0110 1000 0110 0001 0110 0101 0110 1100 0010 0000 0100 0101 0110 1100 0110 1100 0110 0101 0111 0010

  5. #5
    Join Date
    Jun 2008
    Location
    India
    Posts
    46

    Exclamation Re: User-Agent Detection And IIS Plugin

    Can anyone pls point in the right direction of writing an ISAPI extension (.dll) using C# or ASP.net

    and how to configure this extension in IIS which will run at runtime..

    Jus a proper example wud help me a lot..

    This IIS shud give control to my isapi extension dll (eg: myDLL.dll) when the user hits an URL (for eg: www.abc.com)

    Pls help

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured