Passing Data with Server.Transfer - ASP.NET/C#
Posted on 2003-12-10
I've seen a few articles on passing data with the Server.Transfer method but they don't address my problem.
I will have many pages that will Server.Transfer to the same page, lets call these PageA, PageB, PageC, etc. There receiving page we'll call Page2. So, I may have the following transfer situations:
PageA to Page2
PageB to Page2
PageC to Page2,
The sending pages will be made up of forms that all search different database tables. They have their own logic to build SQL clauses. What I want to do is pass 2 strings, the SQL clause and the table name. My problem is, all the examples I've seen cast the Context.Handler to the page that was doing the sending. I will not know this before hand.
So how do I pass two strings in C# with the above example?