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

Problems with session variables

Rob
I'm trying to use session variables to store datasets when moving from page
to page (and returning). The datasets are small (I know some may comment on
performance issues). It seems simple to use. I can pass a dataset to the
second page (once I get one additional page working, the rest will be
simple) successfully but am not able to return to the default page and
retrieve the dataset and rebind it to my datagrid. Once I store it as a
session variable shouldn't it be available as long as my session is intact?
Frankly, it appears a little finicky.

What I have is a default page with a couple of datagrids (it's working fine)
that represents year1 of a proposal. The user defines the number of years
for the project and a slightly modified version of year1 will be called as
year 2, 3 etc. I'm using VS and VB Framework 1.0 - Rob
Nov 17 '05 #1
3 2616
Rob
As a followup, I'm able to pass individual text variables back to the first
page. They are working as expected. It seems that the dataset is the
problem. I've tried both varname=ctype(session("dsname"), dataset) and
varname=session("dsname") with the same results.

Any suggestions or links to references would be appreciated

"Rob" <ro*****@tntech.edu> wrote in message
news:Oh**************@tk2msftngp13.phx.gbl...
I'm trying to use session variables to store datasets when moving from page to page (and returning). The datasets are small (I know some may comment on performance issues). It seems simple to use. I can pass a dataset to the
second page (once I get one additional page working, the rest will be
simple) successfully but am not able to return to the default page and
retrieve the dataset and rebind it to my datagrid. Once I store it as a
session variable shouldn't it be available as long as my session is intact? Frankly, it appears a little finicky.

What I have is a default page with a couple of datagrids (it's working fine) that represents year1 of a proposal. The user defines the number of years
for the project and a slightly modified version of year1 will be called as
year 2, 3 etc. I'm using VS and VB Framework 1.0 - Rob

Nov 17 '05 #2
Rob
No on the username underscore reply.

"Tobe" <to**@vantagecontrols.com> wrote in message
news:0b****************************@phx.gbl...
Does your username have an underscore. I had a problem
with this before, changing the username fixed the
problem. This apparently a bug in the framework.

-----Original Message-----
I'm trying to use session variables to store datasets

when moving from page
to page (and returning). The datasets are small (I know

some may comment on
performance issues). It seems simple to use. I can pass

a dataset to the
second page (once I get one additional page working, the

rest will be
simple) successfully but am not able to return to the

default page and
retrieve the dataset and rebind it to my datagrid. Once

I store it as a
session variable shouldn't it be available as long as my

session is intact?
Frankly, it appears a little finicky.

What I have is a default page with a couple of datagrids

(it's working fine)
that represents year1 of a proposal. The user defines

the number of years
for the project and a slightly modified version of year1

will be called as
year 2, 3 etc. I'm using VS and VB Framework 1.0 - Rob
.

Nov 17 '05 #3
This problem has nothing to do with your DNS, it is your
_Computer's_ name that is the problem. Does your
computer's name have an underscore in it. For example,
ROBS_COMP, would confuse the framework and the session
variables would not be passed from page to page.
-----Original Message-----
As a followup, I'm able to pass individual text variables back to the firstpage. They are working as expected. It seems that the dataset is theproblem. I've tried both varname=ctype(session ("dsname"), dataset) andvarname=session("dsname") with the same results.

Any suggestions or links to references would be appreciated
"Rob" <ro*****@tntech.edu> wrote in message
news:Oh**************@tk2msftngp13.phx.gbl...
I'm trying to use session variables to store datasets when moving from
page
to page (and returning). The datasets are small (I
know some may commenton
performance issues). It seems simple to use. I can
pass a dataset to the second page (once I get one additional page working, the rest will be simple) successfully but am not able to return to the default page and retrieve the dataset and rebind it to my datagrid. Once I store it as a session variable shouldn't it be available as long as my session isintact?
Frankly, it appears a little finicky.

What I have is a default page with a couple of
datagrids (it's workingfine)
that represents year1 of a proposal. The user defines

the number of years for the project and a slightly modified version of year1 will be called as year 2, 3 etc. I'm using VS and VB Framework 1.0 - Rob

.

Nov 17 '05 #4

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

Similar topics

8
by: Marc Hoeve | last post by:
Hi everybody I'm setting up 2 websites for a friend of mine, en I'm have problems with one of the sites. The situation: I have 2 different domains (both in the .NL domain). Both domains...
2
by: Jose Meireles | last post by:
Hi everyone, I'm trying to use public variables in a web form to hld specific values. What happens is that the public variables (declared as public x as y in the beginning of the class), doesn't...
4
by: Phil Grimpo | last post by:
I had previously explained this problem in a different thread, but now that I have an IISState log, I figured I'd re-start the thred. My situation and the log are following... I have a very odd...
4
by: Jack | last post by:
Hi, I have a checkbox the value which goes to a database via a asp page that builds the sql string. In the front end asp page, the checkbox code is written as follows: <i><input...
3
by: l-touched | last post by:
Hello, I am using authentication type = FORMS I need to use Session Variables for passing data between ASPX pages, but I have the following problem: If I call some page without doing...
4
by: - Steve - | last post by:
I have a cs file I use in an ASP.NET form. The class has several member variables. If I assign a value to those variables in a method, when I get to another method the variable no longer equals...
2
by: John Mullin | last post by:
We are having a problem which appears similar to a previous posting: http://groups.google.com/groups?hl=en&lr=&frame=right&th=d97f552e10f8c94c&seekm=OZw33z9EDHA.2312%40TK2MSFTNGP10.phx.gbl#link1 ...
9
by: jsale | last post by:
Hello, I am having a problem with multiple users using my asp.net application - namely that if each user clicks save at the same time, some, or all, of the users crash out. Do I need to do...
3
by: Efrain Flores | last post by:
Hi I am experimenting session problems in ASP.NET. I am developing a data entry system composed of 3 different aspx pages. The values entered on the form fields are stored in sesion variables....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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: 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
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...

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.