Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Develop a webapp for firefox only

Develop a webapp for firefox only

Scheduled Pinned Locked Moved ASP.NET
question
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    gerrybrennan
    wrote on last edited by
    #1

    Hi I am thinking of developing an application for firefox only. Thus avoiding any multiple testings. There for is there a way of preventing running on ie and chrome opera etc Is this a common scenario ? G

    A A 2 Replies Last reply
    0
    • G gerrybrennan

      Hi I am thinking of developing an application for firefox only. Thus avoiding any multiple testings. There for is there a way of preventing running on ie and chrome opera etc Is this a common scenario ? G

      A Offline
      A Offline
      Abhishek Sur
      wrote on last edited by
      #2

      When there is a will, there is a way :-D :-D Check this.Request.UserAgent If you see Firefox in the string, it is Firefox. Redirect to an error page when the User Agent is other than Firefox. ;) ;P

      Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


      My Latest Articles-->** Windows7 API Code Pack
      Simplify Code Using NDepend
      Basics of Bing Search API using .NET

      1 Reply Last reply
      0
      • G gerrybrennan

        Hi I am thinking of developing an application for firefox only. Thus avoiding any multiple testings. There for is there a way of preventing running on ie and chrome opera etc Is this a common scenario ? G

        A Offline
        A Offline
        April Fans
        wrote on last edited by
        #3

        Hi, you can check the bowser type by a JS function on your master page: function checkBrowserType(){ if(navigator.userAgent.toLowerCase().indexOf("firefox") != -1){ // you can try to alert something or redirect to another error page. } }

        April Comm100 - Leading Live Chat Software Provider

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups