• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 272
  • Last Modified:

Whats the best way to pass values between web forms?

Hello All
What are peoples preferred methods for passing variables and values between web forms in ASP.NET and C# code behind?
Thanks to All
0
Puds32
Asked:
Puds32
3 Solutions
 
pschramaCommented:
Depends on the situation, you can either use the querystring, crosspage posting, or session/application variables. Look at the following link for some more explanation and samples:

http://msdn.microsoft.com/en-us/library/6c3yckfw.aspx
0
 
Richard LeeSoftware EnthusiastCommented:
There are several ways to pass values between pages:

1. Session (per user)
2. Post values to the new page (per request)
3. Use Application Cache (per application - shared between all users)

DaTribe
0
 
masterpassCommented:
see this link ... lists all the possibilities

http://msdn.microsoft.com/en-us/library/aa713401%28VS.71%29.aspx

NB: Cannot say the best method unless you tell your scenario
0
 
Puds32Author Commented:
I'm new to this webapp lark so expect many more questions! The data I want to pass is sensitive so pprobably wont use the POST method.
Thanks to all
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now