Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing button's caption on click
Message
From
14/02/2003 16:13:33
Fabian Belo
Independent Developer
Argentina
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00752305
Message ID:
00753475
Views:
14
No. Your code it's ok. I didn't see it before...
One question. It works as you posted? Looks like JS.
BTW, I'm changing my "old" verification with yours.
if (Request.ServerVariables("HTTP_COOKIE")<>"") Then
        Response.Write ("Browser supports cookie!")
     else 
        Response.Write ("Browser does not support cookie!")
End If
Session vars & Cookies, Yep, is a matter of deeper analysis I guess.


>Do you want to say, what my way:
>
> <% if (Request.ServerVariables("HTTP_COOKIE")!=="") {
>        Response.Write ("Browser supports cookie!")}
>     else {
>        Response.Write ("Browser does not support cookie!")}
>        </P>
>Is incorrect?
>
>We went through discussion about session vars/vs. cookies with Joe and the conclusion as I get from him is that (quote from Joe:)
>
>No cookies -> either a really painful way to do application development or you are limited to simple application because you do needed to keep a hidden variables in every page and somehow needed to pass this value to every link possible (think what happen if the user did't use your links at that point)...(okay...there are tools that uses some other techniques....for IIS (for others, it's something that their app server might do for you), it is some sort of 'Plug in' that takes any link and append some sort of 'information' behind it - you might have seen it on some sites where you get stuff like http:///blahblah.asp?ALKHSOIFUOAFBAKJDLJADJLIAUOIDJLNKHIURYQWER <--- how would you implement one without using a 'plug-in' ? I wouldn't recommended doing so but it is possible)...
>
>This is why cookies is almost always a pre-requisite to create an application that is easy to use and to maintain...
>
>So, one big assumption that you can make is that No Cookies - No App ---> Sorry...

>
>And then:
>
>Well...you can either...
>
>1. Put the msg/text at various places to tell/warn users that they must have their cookies set enabled (likewise, perhaps for JavaScript as well).
>2. Check it in code to test whether they have cookies/JavaScript enabled. If so, go to the app otherwise send them somewhere else...(good exercise on this one...think how would you test for JavaScript...and how would you test for cookies...there are many ways...give this a try)
>3. Combinations of 1 and 2 above.

>
>
"Since I've read that alcohol is bad... I quit reading."
Me


http://www.fabianbelo.com.ar
Previous
Reply
Map
View

Click here to load this message in the networking platform