|
-
Dec 11th, 2002, 03:42 PM
#1
Thread Starter
Addicted Member
Passing Data Question
From my main aspx page, I'm navigating to a seperate aspx page. I need to pass a customer
id to the page, however, I don't wanna use session variables or a query string. Is there
any other way around this. Can I set properties on the code-behind page of the destination
page?
Thanks
-
Dec 11th, 2002, 04:11 PM
#2
Why don't you want to use a session variable?
-
Dec 11th, 2002, 08:26 PM
#3
-
Dec 13th, 2002, 12:33 AM
#4
Member
session variables
I am interested in using session variables to pass a dataset from one page to another as well as using a session variable to send a single parameter from one page to the next. Can anyone fill me in on the proper way (syntax) to declare these session variables? And do they have to be declared in the page_load handler, or can they be dim'd anywhere?
Thanks...Ooogs
-
Dec 14th, 2002, 02:10 PM
#5
Fanatic Member
now, call me crazy, but in what case would you need to store a dataset in a session variable?
i'd like to see an example where this would pertain... perhaps a shopping cart i guess... it just seems like there would be better less resource intensive ways of storing data than a dataset in a session variable...
i could be wrong.. i wouldn't mind hearing a good explanation of all this..
-
Dec 16th, 2002, 09:30 AM
#6
Member
my bad
I guess I did pose that question incorrectly now that I look at it. Sorry about that.
I just want to pass a single variable from page to page to use it in determining the next's page's dataset. What would be the syntax to declare just a session variable that could hold a string value?
-
Dec 16th, 2002, 09:53 AM
#7
Addicted Member
syntax:
VB Code:
dim var as string
Session("Name") = var
-
Dec 16th, 2002, 09:56 AM
#8
Member
session variables
Thanks Ryan. One more question...
Is it important where the session variable is declared? Should it be done in the form_load handler for the start page or can it be done anywhere before I use it for the first time?
Thanks...Troy
-
Dec 16th, 2002, 10:13 AM
#9
Addicted Member
I believe you can declare a Session anywhere you want before you use it. There may be instances where you can't, but I have yet to see any of them.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|