Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

use a session state

the session state would look like this

Session("Name") = TextBox1.Text

 

then the other pages you would import the class

 

Imports SessionStates.WebForm1

SessionStates is the project

WebForm1 is the class

 

then you will call the session

Label2.Text = "Hello " & Session("Name")

  • Leaders
Posted

We do this with our own custom SessionToken object that we use to pass between forms and tiers. I suppose if you had some assembly that all your tiers reference, like a SystemFramework, you might be able to get away with it being all public shared properties of an object in that assembly.

 

I think you guys likely know what he's getting at. How do you maintain your session data across forms and tiers?

--tim

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...