Re: Detecting if Browser Accepts Cookies & JavaScript
From: Juan T. Llibre (nomailreplies_at_nowhere.com)
Date: 02/11/05
- Next message: G Dean Blake: "Re: GAC DLL HELL"
- Previous message: Kevin Spencer: "Re: The website ASP.NET"
- In reply to: SHarris: "Detecting if Browser Accepts Cookies & JavaScript"
- Next in thread: SHarris: "Re: Detecting if Browser Accepts Cookies & JavaScript"
- Reply: SHarris: "Re: Detecting if Browser Accepts Cookies & JavaScript"
- Reply: SHarris: "Re: Detecting if Browser Accepts Cookies & JavaScript"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 11 Feb 2005 14:13:38 -0400
Use
Request.Browser.Cookies
and
Request.Browser.JavaScript
If the value returned is true, they are enabled.
If false they are not enabled.
PLace it in the login page's Page_Load,
and redirect as appropiate ( maybe to a page
which tells the user that they are a requisite. )
Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaņol
=====================
"SHarris" <sharris@nospam.com> wrote in message
news:eh7c5LGEFHA.1012@TK2MSFTNGP14.phx.gbl...
> Hello,
> In our new intranet ASP.NET project, two requirements are that the browser
> accept cookies AND JavaScript. We are requiring the use of Internet
> Explorer 6+.
>
> 1. Using C# in an ASP.NET application, how can we code the project to
> check
> to make sure the browser accepts cookies?
> 2. Where would we put this code? In Global.asax?
> 3. Using C# in an ASP.NET application, how can we code the project to
> detect and make sure the browser is configured to run JavaScript?
> 4. Where would we put this code?
>
> Thanks in advance!
>
>
- Next message: G Dean Blake: "Re: GAC DLL HELL"
- Previous message: Kevin Spencer: "Re: The website ASP.NET"
- In reply to: SHarris: "Detecting if Browser Accepts Cookies & JavaScript"
- Next in thread: SHarris: "Re: Detecting if Browser Accepts Cookies & JavaScript"
- Reply: SHarris: "Re: Detecting if Browser Accepts Cookies & JavaScript"
- Reply: SHarris: "Re: Detecting if Browser Accepts Cookies & JavaScript"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|