Dozo_1st
August 24th, 2004, 11:40 AM
I am new with programming webforms, so any help is very welcome! :D
First off, I have a webform form1.aspx. I use vb.net for the code-behind. Everything is programmed in this code-behind.
In the application I also created a Class1.vb. This class holds user-input collected from the controls of the webform (textboxes, dropdownlists, etc).
When the user leaves the form and returns to this form, on return, the collected information stored in the class is put back in the controls as the user left it. It is declared in the form as
Dim CLB As New Class1
Now the problem:
If another user (on another computer) also retrieves this form1.aspx, all the stored data is also put in that user's page.
What I want is that every seperate user that retrieves this webform gets a new clean form which creates and holds it's own CLB.
Also, when it redirects to other pages, which have a public shared Object and is filled by the redirecting page - are you still following this? :sick: :sick: - I don't want one user overwriting this shared object by the other! I want for every user to get a clean new page of the webform to which is redirected to each with it's own filled shared object form their own redirecting page.
How do I do this??? :confused:
I have tried to be as clear as possible! :ehh:
Thanks in advance for all your help!
Dozo
On Request:
In form2:
Public Shared GoBackToOriginalForm As String
In form1:
Application.Form2.GoBackToOriginalForm = "Form1.aspx"
Response.Redirect("Form2.aspx")
In Form2:
'Do your thing and when finished:
Response.Redirect(GoBackToOriginalForm)
In Form3:
Application.Form2.GoBackToOriginalForm = "Form3.aspx"
Response.Redirect("Form2.aspx")
If I have user1 using Form1 and simultaneously user2 using Form3, the last process will be executed and user1 and user2 will both get redirected to the same page - the last fill of GoBackToOriginalForm.
First off, I have a webform form1.aspx. I use vb.net for the code-behind. Everything is programmed in this code-behind.
In the application I also created a Class1.vb. This class holds user-input collected from the controls of the webform (textboxes, dropdownlists, etc).
When the user leaves the form and returns to this form, on return, the collected information stored in the class is put back in the controls as the user left it. It is declared in the form as
Dim CLB As New Class1
Now the problem:
If another user (on another computer) also retrieves this form1.aspx, all the stored data is also put in that user's page.
What I want is that every seperate user that retrieves this webform gets a new clean form which creates and holds it's own CLB.
Also, when it redirects to other pages, which have a public shared Object and is filled by the redirecting page - are you still following this? :sick: :sick: - I don't want one user overwriting this shared object by the other! I want for every user to get a clean new page of the webform to which is redirected to each with it's own filled shared object form their own redirecting page.
How do I do this??? :confused:
I have tried to be as clear as possible! :ehh:
Thanks in advance for all your help!
Dozo
On Request:
In form2:
Public Shared GoBackToOriginalForm As String
In form1:
Application.Form2.GoBackToOriginalForm = "Form1.aspx"
Response.Redirect("Form2.aspx")
In Form2:
'Do your thing and when finished:
Response.Redirect(GoBackToOriginalForm)
In Form3:
Application.Form2.GoBackToOriginalForm = "Form3.aspx"
Response.Redirect("Form2.aspx")
If I have user1 using Form1 and simultaneously user2 using Form3, the last process will be executed and user1 and user2 will both get redirected to the same page - the last fill of GoBackToOriginalForm.