473,408 Members | 1,730 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,408 software developers and data experts.

ASP Session Variable Info missing after accessing ASPX

I have a mix web site, ASP and ASPX files.
I have assigned a value to Session("Date") and the href to
an ASPX page. When I further href to another ASP Page. The
content in Session("Date") becoming blank. Is it in
design? Or bug? Is there any work around solution?

Also, Is there any way to secure my ASPX source code from
client? I don't want clients to be able to see the source
code but they can run the ASPX.

Thanks
Nov 17 '05 #1
1 4366
Are you initially setting Session("Date") in ASP or ASPX? Session variables
don't automatically pass from ASP and ASPX pages in the same application.
(If this is what you're trying to do - take a look at
http://www.sessionbridge.com. It's a utility to help with this.)

If you're setting it in an ASP page, navigating to an ASPX page, and then
going to another ASP page - the session variable set on the first page
should still be available as long as your timeout hasn't expired. By having
ASP and ASPX in the same application, the client has 1 session with ASP and
another session with ASPX. This shouldn't be any different than navigating
to a page on another site and then back to yours (again, as long as the
timeout hasn't expired).

As far as securing the ASPX, if you use "code-behind" pages - that code is
compiled into the DLL and only your HTML is in the ASPX file.

Jeff Trotman
Westglenn Software

"Arthur" <Ar*******@asiantat.com> wrote in message
news:08****************************@phx.gbl...
I have a mix web site, ASP and ASPX files.
I have assigned a value to Session("Date") and the href to
an ASPX page. When I further href to another ASP Page. The
content in Session("Date") becoming blank. Is it in
design? Or bug? Is there any work around solution?

Also, Is there any way to secure my ASPX source code from
client? I don't want clients to be able to see the source
code but they can run the ASPX.

Thanks

Nov 17 '05 #2

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

Similar topics

1
by: Scott Wickham | last post by:
I'm having a problem saving session information on one form and retrieving it on a subsequent form...for only one out of a number of users. Actually, I'm not absolutely certain it's a session...
14
by: Paul Yanzick | last post by:
Hello, I am trying to develop a book tracking application for my capstone in school, and am running into a problem. The application is an ASP.Net application written in C#. The first page you...
0
by: Arthur | last post by:
I have a mix web site, ASP and ASPX files. I have assigned a value to Session("Date") and the href to an ASPX page. When I further href to another ASP Page. The content in Session("Date") becoming...
9
by: William LaMartin | last post by:
I have a problem, mentioned here before, of Session and Application variables disappearing at one site but not at others or on my development computer. The problem is illustrated by an example...
1
by: Werner | last post by:
Hi Patrick! Can you give an example of how to use a frameset inside an aspx-file? When I create a new frameset in Visual Studio.Net it just gives me a htm-File. Or give me a link where I can...
7
by: Lucas Tam | last post by:
I'm calling the session object from an inherited page. The page is based off an herited class which outputs XML. Does anyone know why the session object would be nothing? ...
5
by: Soren S. Jorgensen | last post by:
Hi, I've got a web-app thats activated by a call to a aspx page from ASP, I need to go back to the ASP session and get some simple data saved in that session. I have no possiblity to do...
14
by: Rick | last post by:
We are in the process of testing a large web project that I converted from VS 2003 to VS 2005. Everything seems to be working except for a few minor things. But the main issue I have is this, I...
5
by: gom | last post by:
I am an amatuer asp.net programmer so I hope this question isn't to dumb. I am having difficulty with my understanding of session state. I have an application that stores some values in the...
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...
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
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,...
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
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.