Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional 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
  #1 (permalink)  
Old April 13th, 2006, 03:01 PM
Authorized User
Join Date: Mar 2005
Location: , , .
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default Setting and Retrieving Cookies

I have page1.aspx. On this page I have a link to a pdf file and a checkbox that is disabled. When user clicks on link they get redirected to page2.aspx, which is actually a 2nd window that pops up. On this page I update a table specifying that the link was clicked and using the following code display the pdf:

 Response.ContentType = "Application/pdf"
 Response.Redirect("05. Incentive Policy.pdf")
I need to enable the checkbox on page1.aspx after the link for the pdf has been clicked.

How can I do this? I'm trying to set a cookie on page1 and then reset it with a different value on page2, and then somehow read it from page1, but this isn't working.


Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting cookies in code DavidStowell VB How-To 1 May 23rd, 2008 02:53 PM
Retrieving Cookies sabansingh ASP.NET 2.0 Basics 0 January 31st, 2006 05:26 AM
Should I use cookies?? Help Tee88 Classic ASP Basics 3 January 21st, 2005 12:33 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.