Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 26th, 2003, 01:52 AM
Friend of Wrox
 
Join Date: Aug 2003
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to life_s Ng Send a message via MSN to life_s Ng
Default help... comparing 2 cookies value

hi, im comparing two cookies value as shown as below... n i dont know the correct way to compare it, can any1 give some suggestions? thanks alot.

if (Request.Cookies("Customer").Value) is "'Response.Cookies("NewCustName").Value'" then

 
Old August 26th, 2003, 09:06 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

I don't get it. Are you trying to compare the value of the "Customer" cookie to the literal value "'Response.Cookies("NewCustName").Value'"? It looks like that is what you are doing. Do you want to compare the values of two cookies?
Code:
If Request.Cookies("Customer").Value = Response.Cookies("NewCustName").Value Then
Peter
 
Old August 26th, 2003, 07:52 PM
Friend of Wrox
 
Join Date: Aug 2003
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to life_s Ng Send a message via MSN to life_s Ng
Default

orh, sorry sorry sorry, its response cookies compare to response cookies... thanks alot, its working~~~

if (Response.Cookies("Customer").Value) is Response.Cookies("NewCustName").Value then






Similar Threads
Thread Thread Starter Forum Replies Last Post
Cookies hastikeyvan Classic ASP Professional 5 May 29th, 2006 07:36 AM
Cookies shabboleth Beginning PHP 3 December 30th, 2003 10:32 AM
Help!About Cookies jelsen ASP.NET 1.0 and 1.1 Basics 2 September 9th, 2003 08:36 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.