sgunay Posted January 10, 2004 Posted January 10, 2004 Hello to everyone again, i have a web project that creates an object like dataset.Ý think following code explains more clearly what i want to do. FileName:xModule has following code snippet Module calisanlar .... public myDataSet as DataSet End Module FileName:calisanlar.aspx.vb has following code snippet Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'Put user code to initialize the page here If Not IsPostBack Then ..... myDataSet = New DataSet() End if ...... End sub The problem is when multiple user executes my applications at same time Unfortunately they use and can change the same myDataSet object . But the project must create diffrent objects for different users. i am sure you can give me an idea. Thank for advance. i must say;i am a beginner. Quote
Administrators PlausiblyDamp Posted January 10, 2004 Administrators Posted January 10, 2004 Don't use modules. Create the dataset and store it in the session object. Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'Put user code to initialize the page here If Not IsPostBack Then ..... myDataSet = New DataSet() Session("MyData")= myDataSet else myDataSet = Session("MyData") End if ...... End sub as a quick and dirty example. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.