1

I want to know if it is possible to pass data to another page without Querystrings or Session.

In other words: Can i do this using delegates or any other way?

Kilian Stinson
  • 2,376
  • 28
  • 33
Pazoti
  • 13
  • 2

1 Answers1

1

You can POST data to another page (this is slightly different than using querystrings but may be too similar for your liking). Any data POSTED to another web form can be read with Request.Form["name_of_control"].

In certain cases I've had to develop my own approach involving generating a GUID and passing that around from page-to-page. Then any page can pull my data structures associated with a given GUID from a static key/value structure... Similar to Sessions I suppose but I had more control over how it worked. It allowed for any user to have multiple simultaneous windows/tabs open to my application and each one would work without affecting or being affected by the others (because each were passing around a different GUID). Whatever approach you choose I do urge you to consider the fact that users may want to use your application via multiple windows/tabs at the same time.

The right tool for you depends on your needs. Remember your challenge lies is making HTTP which is inherently stateless more state-ful. This thread has a very good discussion on this topic: Best Practices for Passing Data Between Pages

Community
  • 1
  • 1
mikey
  • 5,090
  • 3
  • 24
  • 27