473,414 Members | 1,606 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,414 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 4171
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.