473,378 Members | 1,482 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Passing data via cookies from ASP to ASPX page.

I save a cookie in my intro ASP page, but I can not seem to read it from my
ASPX page.

In ASP....

Response.Cookies("S2")("UserCompanyID")=rs("Level1 ")

In the target ASPX page I have....

Dim Cookie2 As HttpCookie

Cookie2 = Request.Cookies("S2")

txtTerrID.Text = Cookie2.Values("UserCompanyID")

I am not able to read txtTerrID.text

Thanks in advance.


Jul 19 '05 #1
1 4169
Please disregard the post. This works find.
"Jim Mitchell" <ji**********@mindspring.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
I save a cookie in my intro ASP page, but I can not seem to read it from my ASPX page.

In ASP....

Response.Cookies("S2")("UserCompanyID")=rs("Level1 ")

In the target ASPX page I have....

Dim Cookie2 As HttpCookie

Cookie2 = Request.Cookies("S2")

txtTerrID.Text = Cookie2.Values("UserCompanyID")

I am not able to read txtTerrID.text

Thanks in advance.

Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Paul | last post by:
Hmmm, didn't seem to work. I have set session.use_cookies = 1 and session.use_trans_sid = 1 in my php.ini file. Index.php contains:...
0
by: Jim Mitchell | last post by:
I have a login screen that validates username and password returning the ID in a table of the user logging in. I then use server.transfer to split into two screens as shown below. I would like to...
1
by: Jim Mitchell | last post by:
I have one ASPX page that calls another using server transfer as shown below. The problem is that I do not get the cookie in the second page. The value seems to be blank. Any help would be...
5
by: cgia | last post by:
I am porting an old client/server application to asp.net. I used to retrieve data into local tables (Paradox table-files on the client's disk) and work on them before saving them back to the...
1
by: Russell | last post by:
Hi there, I'm currently creating a .NET Web Application and I have a question about passing values from one screen to another. I previously used Session variables in the code to store these...
4
by: gkr | last post by:
Hi I would like to pass values/data from Page1 to Page 2, then capture values on page 2 and return back to Page 1 with the values from page2. Can you pls guide me on how to do this ? I tried...
8
by: Chris | last post by:
Hi, I have two froms (form1 and form2). I want to be able to pass values from form 1 to form2 and be able to use those values leter in form2. This is my code for form1 Private Sub...
1
by: Jim Mitchell | last post by:
I save a cookie in my intro ASP page, but I can not seem to read it from my ASPX page. In ASP.... Response.Cookies("S2")("UserCompanyID")=rs("Level1") In the target ASPX page I have.... ...
2
by: thomson | last post by:
Hi All, I do have a search page with lot of parameters, when i click the Search button, it should redirect a new page with the search results, Since there are lot of parameters , Query string...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.