When creating a Web Forms application, it is often necessary to pass information from one Web Forms page to another. This allows information to be entered on one Web Forms page and then submitted to another page for processing.
The design pattern for passing values between Web Forms pages using inline code is slightly different than it is for code-behind files. Which design pattern you choose depends on your preference for using inline code or code-behind files. Both design patterns are discussed in the following sections.