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

? retaining data within project accross webforms

Hi have a question hope there is a simple answer. I want to enter data
in to 2 arrays from several webforms in project and be able to recall
that data from any of the webforms, other then using a querystring

I tried creating a module as follows

Module dataspecs
Public ar1(0) As Integer
Public ar2(0) As Integer
End Module

This works fine, I can read and add data to the arrays from each
webform from within the project. Only one problem, it seems if there
are 2 pc's accessing the project whatever pc1 enters,updates is also
available to pc2 and visa versa. It seems both share the same copy
across all webforms. Is there a way for each user to have there own
copy of the fields(array) across the project.

Hope I explained the problem

Thanks Jerry
Nov 18 '05 #1
3 1253
Yeah, that seems very odd. I really can't see how 2 seperate requests to
this page, are resulting in the same results. I could be having a severe
brain cramp at the moment, but I don't think that should be the case.

Please post some more code, and further details.

-mike

"Netserver" <N@free.com> wrote in message
news:7t********************************@4ax.com...
Hi have a question hope there is a simple answer. I want to enter data
in to 2 arrays from several webforms in project and be able to recall
that data from any of the webforms, other then using a querystring

I tried creating a module as follows

Module dataspecs
Public ar1(0) As Integer
Public ar2(0) As Integer
End Module

This works fine, I can read and add data to the arrays from each
webform from within the project. Only one problem, it seems if there
are 2 pc's accessing the project whatever pc1 enters,updates is also
available to pc2 and visa versa. It seems both share the same copy
across all webforms. Is there a way for each user to have there own
copy of the fields(array) across the project.

Hope I explained the problem

Thanks Jerry

Nov 18 '05 #2
Store the Arrays in Session this will ensure each user will have it's own
copy.

Thanks
Nakul

"Netserver" <N@free.com> wrote in message
news:7t********************************@4ax.com...
Hi have a question hope there is a simple answer. I want to enter data
in to 2 arrays from several webforms in project and be able to recall
that data from any of the webforms, other then using a querystring

I tried creating a module as follows

Module dataspecs
Public ar1(0) As Integer
Public ar2(0) As Integer
End Module

This works fine, I can read and add data to the arrays from each
webform from within the project. Only one problem, it seems if there
are 2 pc's accessing the project whatever pc1 enters,updates is also
available to pc2 and visa versa. It seems both share the same copy
across all webforms. Is there a way for each user to have there own
copy of the fields(array) across the project.

Hope I explained the problem

Thanks Jerry

Nov 18 '05 #3
yeah I did that, that is use session. but it seems funny that MS lets
you use a data structure in a module that is updateable by all and
viewable by all, but does not give you the ability for indivisual
copies per user..If you remember vb6.0, they had a GLOBAL varibale
that could be accessed accross the project but it did not let other
users access it......hmmmmmmmmmmmm

Jerry

On Fri, 2 Jan 2004 21:44:52 +0530, "Nakul" <na****@hotmail.com> wrote:
Store the Arrays in Session this will ensure each user will have it's own
copy.

Thanks
Nakul

"Netserver" <N@free.com> wrote in message
news:7t********************************@4ax.com.. .
Hi have a question hope there is a simple answer. I want to enter data
in to 2 arrays from several webforms in project and be able to recall
that data from any of the webforms, other then using a querystring

I tried creating a module as follows

Module dataspecs
Public ar1(0) As Integer
Public ar2(0) As Integer
End Module

This works fine, I can read and add data to the arrays from each
webform from within the project. Only one problem, it seems if there
are 2 pc's accessing the project whatever pc1 enters,updates is also
available to pc2 and visa versa. It seems both share the same copy
across all webforms. Is there a way for each user to have there own
copy of the fields(array) across the project.

Hope I explained the problem

Thanks Jerry


Nov 18 '05 #4

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

Similar topics

5
by: Suresh Kumaran | last post by:
How do you retain the last value the user keyed in a text box? I should be able to show the values when the user runs the executable for the second time. Appreciate help. Suresh
16
by: D Witherspoon | last post by:
I am developing a Windows Forms application in VB.NET that will use .NET remoting to access the data tier classes. A very simple way I have come up with is by creating typed (.xsd) datasets. For...
5
by: jqpdev | last post by:
Hello all... I'm coming from a Borland Delphi background. Delphi has a specific component called a Data Module. In the designer the Data Module behaves like a windows form. A developer can...
2
by: Piotr Karwatka | last post by:
Hi! I have a little problem an qeustion. In .NET Windows Forms I can do something like that: - i have forms - Form1 Form2, on first form i have TextBox1 control on 2nd form I have Button1...
5
by: Oleg Ogurok | last post by:
Hi all, Is there a way to read other people's session variables? I understand it makes sense that session state is on per-user basis, but still... Is there a way to get a collection of all...
4
by: Netserver | last post by:
Hi have a question hope there is a simple answer. I want to enter data in to 2 arrays from several webforms in project and be able to recall that data from any of the webforms, other then using a...
4
by: Jakob Lithner | last post by:
I just read an interesting article on Data Sources in Visual Studio 2005: http://msdn.microsoft.com/vbasic/default.aspx?pull=/library/en-us/dnvs05/html/newdtastvs05.asp It was an eye opener on...
13
by: Tomasz Jastrzebski | last post by:
Helo All, The problem: GridView control does not render at all (header/footer) when the data source is empty. I have seen a similar question posted already, but I just can not believe there is...
2
by: s4lin | last post by:
problem is pagination not retaining data field i have form with general data field, and i need to select some option which is store in database, so i open another page with retrieving data from...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
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: 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...

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.