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

Storing/passing variables

Hi,

I work in Visual Basic .NET 2002 using ASP.NET.
I am wondering what would be the best way to store/pass variables
between pages.
(Sessions are sooo simple to use but I hear they are not the best....).
Having a class with static parameters????
Having a class that all the pages inherit???
(These last 2 ideas are coming from the news group but I do not quite
understand them).

Thanks,

Carly

May 1 '06 #1
1 1478
There isn't a best way, unfortunately its whats best for your application.
I like session, as long as its not going to be used really heavily its
perfect and very easy, you need to consider the amount of data stored and
the potential traffic to the site so you dont end up limiting your sites
performance. I prefer to use Public Property Values if I dont have much to
data to work with. Of course it gets more complicated if your passing
values between applications as well as pages.

Good read here to help you.
http://msdn2.microsoft.com/en-us/library/6c3yckfw.aspx

--
Regards

John Timney
Microsoft MVP

"Carly" <ca*******@hotmail.com> wrote in message
news:11**********************@v46g2000cwv.googlegr oups.com...
Hi,

I work in Visual Basic .NET 2002 using ASP.NET.
I am wondering what would be the best way to store/pass variables
between pages.
(Sessions are sooo simple to use but I hear they are not the best....).
Having a class with static parameters????
Having a class that all the pages inherit???
(These last 2 ideas are coming from the news group but I do not quite
understand them).

Thanks,

Carly

May 1 '06 #2

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

Similar topics

4
by: Amr Mostafa | last post by:
Hello :) I'm trying to write a script that deals with a web service. I'm using NuSoap class. my question is : Can I pass some variables By Reference to the web service and get the result back...
7
by: pescott | last post by:
I am still struggling to get some files uploaded to a database as BLOB data. I have 5 includes which allows the user to upload 5 files, numbered accordingly. However, there are script errors. Duhh,...
4
by: Jason Us | last post by:
Does anyone have experience with passing variables from an ASP page to a JSP page. The way it currently works in passing the SSN in the URL. This cannot be good. I thought that storing a...
3
by: domeceo | last post by:
can anyone tell me why I cannot pass values in a setTimeout function whenever I use this function it says "menu is undefined" after th alert. function imgOff(menu, num) { if (document.images) {...
5
by: Jack | last post by:
Hi, I need to pass multple variables in a link in order to go to a asp page with the two varables. The following are the values of the variables using response.write: <%'Response.Write Mypage...
2
by: Mark Hannon | last post by:
I am trying to wrap my brain around storing form elements inside variables & arrays before I move on to a more complicated project. I created this simple example to experiment and as far as I can...
12
by: Andrew Bullock | last post by:
Hi, I have two classes, A and B, B takes an A as an argument in its constructor: A a1 = new A(); B b = new B(a1);
0
by: Carly | last post by:
Hi, I work in Visual Basic .NET 2002 using ASP.NET. I am wondering what would be the best way to store/pass variables between pages. (Sessions are sooo simple to use but I hear they are not the...
9
by: =?Utf-8?B?SmFzb24gSGFydHNvZQ==?= | last post by:
I have a sub routine that's passing in a variable. I need to take that variable and store it globally...but here's what's happening. ex: I'm executing my routine: doMyThing(path, "test") I'm...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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:
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: 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...

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.