Re: Detecting if Browser Accepts Cookies & JavaScript
From: SHarris (sharris_at_nospam.com)
Date: 02/11/05
- Next message: Scott Allen: "Re: Problem with w3wp.exe when recycling"
- Previous message: Scott Allen: "Re: transport error when"
- In reply to: Juan T. Llibre: "Re: Detecting if Browser Accepts Cookies & JavaScript"
- Next in thread: bruce barker: "Re: Detecting if Browser Accepts Cookies & JavaScript"
- Reply: bruce barker: "Re: Detecting if Browser Accepts Cookies & JavaScript"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 11 Feb 2005 13:08:19 -0700
Again, thanks for the info. But, after reviewing Request.Browser.Cookies
and Request.Browser.JavaScript, these two properties simply return true if
browser client "supports" Cookies and JavaScript, respectively. This is
good to know.
But, what we really need is a way to check and make sure the user has not
disabled Cookies and JavaScript through security settings. Any thoughts?
"Juan T. Llibre" <nomailreplies@nowhere.com> wrote in message
news:ejemrVGEFHA.3976@tk2msftngp13.phx.gbl...
> 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: Scott Allen: "Re: Problem with w3wp.exe when recycling"
- Previous message: Scott Allen: "Re: transport error when"
- In reply to: Juan T. Llibre: "Re: Detecting if Browser Accepts Cookies & JavaScript"
- Next in thread: bruce barker: "Re: Detecting if Browser Accepts Cookies & JavaScript"
- Reply: bruce barker: "Re: Detecting if Browser Accepts Cookies & JavaScript"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|