| Kevin b |
-- Moved from [aspngfreeforall] to [aspngvb] by Tim Musschoot <Click here to reveal e-mail address> --
I have an IF statement like the following. Is there a more logical way of doing this?
If Request.Cookies("CookieName") Is Nothing Then 'Do Nothing Else Response.Redirect("Page.asp") End IF
Thanks
_________________________________________________________________ Join the world's largest e-mail service with MSN Hotmail. http://www.hotmail.com
|
|
| |
| |
| Peter Erwin |
how's this?
<% 'redirect if cookie exists If request.cookies("CookieName") <> "" Then = Response.Redirect("page.asp") %>
-----Original Message----- From: Kevin b [mailto:Click here to reveal e-mail address] Sent: Thursday, July 25, 2002 8:01 AM To: aspngvb Subject: [aspngvb] Proper IF statement
-- Moved from [aspngfreeforall] to [aspngvb] by Tim Musschoot = <Click here to reveal e-mail address> --
I have an IF statement like the following. Is there a more logical way = of=20 doing this?
If Request.Cookies("CookieName") Is Nothing Then 'Do Nothing Else Response.Redirect("Page.asp") End IF
Thanks
_________________________________________________________________ Join the world's largest e-mail service with MSN Hotmail.=20 http://www.hotmail.com | [aspngvb] member Click here to reveal e-mail address =3D YOUR ID | http://www.asplists.com/asplists/aspngvb.asp =3D JOIN/QUIT
|
|
| |
|
| | |
| |
| suresh kumar |
try this If trim(Request.Cookies("CookieName")) <> "" Then Response.Redirect("Page.asp")
[Original message clipped]
_________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com
|
|
| |
|
| |
| El Waltero |
I like ...
If Not (Request.Cookies("CookieName") Is Nothing) ' Do Something! Response.Redirect("Page.asp") End If
.walter
-----Original Message----- From: Kevin b [mailto:Click here to reveal e-mail address] Sent: Thursday, July 25, 2002 8:01 AM To: aspngvb Subject: [aspngvb] Proper IF statement
-- Moved from [aspngfreeforall] to [aspngvb] by Tim Musschoot <Click here to reveal e-mail address> --
I have an IF statement like the following. Is there a more logical way of doing this?
If Request.Cookies("CookieName") Is Nothing Then 'Do Nothing Else Response.Redirect("Page.asp") End IF
Thanks
_________________________________________________________________ Join the world's largest e-mail service with MSN Hotmail. http://www.hotmail.com | [aspngvb] member Click here to reveal e-mail address = YOUR ID | http://www.asplists.com/asplists/aspngvb.asp = JOIN/QUIT -
-
|
|
| |
|