473,804 Members | 3,720 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Cookie s("S2")("UserCo mpanyID")=rs("L evel1")

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 4191
Please disregard the post. This works find.
"Jim Mitchell" <ji**********@m indspring.com> wrote in message
news:%2******** ********@TK2MSF TNGP10.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.Cookie s("S2")("UserCo mpanyID")=rs("L evel1")

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
7790
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: ---------------------------------------------------------------------------- <?php ini_set("session.use_cookies", "off"); ini_set("session.use_trans_sid", "on"); session_start(); $_SESSION = ""; $_SESSION = ""; echo "<form method='POST' action='login.php'>
0
1378
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 pass this ID to PAGE1.ASPX and PAGE2.ASPX as shown below without using cookies and without passing the data on the command line. Is there a way to accomplish this task? I know that it can be done form ASPX page to ASPX page, but I do not see...
1
3722
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 appreciated. Thanks, Jim
5
10014
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 server. What is the approach for this in asp.net? The comments in MSDN on using the session object are scary, imagining that several users at the same time will use plenty of space on the server's memory! Or is it realistic to memorize the data in a...
1
1681
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 values, however I can no longer use this method because of my current website "Cloaking" the URL. (When site is cloked, the session variables don't seem to work with frames) Anyway, I was wondering if anyone could offer an alternative, I have tried...
4
1604
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 Server.transfer to pass values from Page1 to Page2, but from page2 am unable to return to Page 1 or any other page with the values picked from Page2.
8
1967
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 Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Server.Transfer("form2.aspx", True) End Sub
1
318
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.... Dim Cookie2 As HttpCookie
2
1023
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 option might not be looking that good, Can anyone suggest a good strategy in doing the same Thanks in Advance thomson
0
9706
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9582
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10580
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10335
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10323
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9157
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7621
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
4301
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3821
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.