A Visual Studio Project which demonstrates several ways to pass data from one ASP.NET Web Forms page to another one. For related MSDN documentation, see How to: Pass Values Between ASP.NET Web Pages.
To build and run this sample, you must have Visual Studio 2010 installed. Unzip the PassingData.zip file into your Visual Studio Projects directory (My Documents\Visual Studio 2010\Projects) and open the PassingData.sln solution.
To build the sample, use the Build | Build Solution menu command.
To run the sample, hit F5 or choose the Debug | Start Debugging menu command. The Default.aspx page, which functions as the Source Page is displayed. The page has a text box and several buttons, each of which uses a different method to pass whatever value is in the text box to another page.

When you click one of the buttons, control transfers to the selected page, and that page displays whatever value was entered in the text box.
The source code in this sample demonstrates several techniques you can use to pass data from page to page, as described in the button labels shown in the Running the Sample section. For example, to see how to pass data using a query string, you would look at the code for that button in Default.aspx and its code-behind file, and in QueryStringPage.aspx and its code-behind file.