title: how to stop an application if opened from chrome or safari browsers
body: <p>in .cs page i am checking the browser type used to run the applcation:</p>
  
  <pre><code>#region CheckBrowserType
      /// &lt;summary&gt;
      /// Check for the browser type used in TDB application
      /// &lt;/summary&gt;
      void CheckBrowserType()
      {
         if ((Request.Browser.Browser == "IE")||(Request.Browser.Browser == "Firefox"))
              {
                  IntBrowserType = 1;
              }
         else
              {
                  IntBrowserType = 2;
              }
          }
      #endregion
  </code></pre>
  
  <p>On page load I am calling the function:</p>
  
  <pre><code>CheckBrowserType();
          if (IntBrowserType == 1)
          {
  //here i wil be  showing the  login page tetx boxes
          }
          else if (IntBrowserType == 2)
          {
              Response.Write(@"&lt;script language='javascript'&gt;alert('Please re-open application in either Firefox or Internet Explorer')&lt;/script&gt;");
          }
  </code></pre>
  
  <p>If a user logins with a chrome browser i am displaying alert message. Once i click the ok in the alert message I can still see the login page controls displayed.</p>
  
  <p>How can stop that (if user opens the application in either chrome or safari)?</p>
  
  <p>I should stop the login page being displayed.</p>
  
  <p>I am using vs2005, c#,asp.net 2.0</p>
  
  <p>Any help how to solve the problem would be great.</p>
  
  <p>thanks </p>
  
  <p>prince</p>