|
-
Jul 17th, 2001, 07:52 AM
#1
Thread Starter
Hyperactive Member
Remembering Values
Apart from using sessions, what is the best way of remembering values when moving from one screen to another.
Thanks in advance for any help provided.
VB 6 Enterprise Edition SP4
ADO, SQL 7/2000, ASP and some JavaScript

>> Life goes on, but for how long? <<
If you can smile when things go wrong, you have someone in mind to blame
-
Jul 17th, 2001, 08:44 AM
#2
Lively Member
I would go for session. But if that is not avail... you can always use the hidden input types and pass the values page to page.
I had to do that ... pass the value page for page. It's tedious... but keeping all the names the same is becomes a breaze..
You can probbly store it in a cookie... but if cookies are disabled your are up the creek!
Hope it helps
-
Jul 17th, 2001, 02:00 PM
#3
Frenzied Member
If cookies are disabled, you are up a creek with sessions as well..
oOOo--oOOo
__ /\/\onte96
oOOo--oOOo
Senior Programmer/Analyst
MCP
[email protected]
[email protected]
Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..
-
Jul 17th, 2001, 02:51 PM
#4
Fanatic Member
Partly an answer to one of your other questions. If you are using Frames you can store values on the main frame page:
Code:
<script LANGAUGE = "JavaScript">
var custName = "";
var custNumber = 0;
</script>
You can access these variables in JavaScript by:
parent.custName;
parent.custNumber;
From any other of pages in the other frames.
But if you are using ASP, Session variables are much better.
Chris
-
Jul 17th, 2001, 07:28 PM
#5
An easier way then through hidden fields would be to pass it through the querystring. Of course, if you have secure information (passwords, credit card numbers, etc.) then you want to use the hidden fields. Of course, this means you have to submit a form on every page, kind of a pain in the a$$
-
Jul 18th, 2001, 01:49 AM
#6
Frenzied Member
Hidden field values can be viewed in the page source.
oOOo--oOOo
__ /\/\onte96
oOOo--oOOo
Senior Programmer/Analyst
MCP
[email protected]
[email protected]
Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..
-
Jul 18th, 2001, 03:08 AM
#7
Thread Starter
Hyperactive Member
Right I've got information going between frames storing common info in the title frame which is always there. Next trouble is, is there anyway to get info from Javascript to ASP.
Thanks in advance for any help provided.
VB 6 Enterprise Edition SP4
ADO, SQL 7/2000, ASP and some JavaScript

>> Life goes on, but for how long? <<
If you can smile when things go wrong, you have someone in mind to blame
-
Jul 18th, 2001, 06:38 AM
#8
Black Cat
You could put a session id in the URL or Querystring and write it in every link once the user starts. It's a very limited method, though - if they click to another site you lose the session.
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
-
Jul 18th, 2001, 12:58 PM
#9
Fanatic Member
You could try using the querystring through a javascript function. Create a function like:
function sendInfo(){
window.location = 'http://myAspScript.asp?info=' + parent.myVar;
}
Call the function whenever you want to navigate to the asp script.
<a HREF = "javascript:sendInfo();">Click Here</a>
<input TYPE = "button" VALUE = "Click Here" ONCLICK = "sendInfo();">
Chris
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
|