On 12 Feb 2005, "=?Utf-8?B?RGF2aWQgVGhpZWxlbg==?="
<th*****@nospam.nospam> postulated in news:52627C6F-9CD5-4669-AADC-
DE**********@microsoft.com:
Hi;
The ASP .NET book I have only talks about putting everything in a
single aspx and aspx.cs file. However, it seems to me you want to redirect
to a different page/class for each logical page. Which brings up 2
questions:
1) When the user presses submit, is best practice to immediately
redirect to the new page and have that read the controls from the first page.
Or do you read the values from the controls and then redirect with the read
values in an object.
2) How do I redirect to another page of mine?
Not any more.
In ASP.NET, the usual practice is to process form variables in the
code-behind page.
Generally, you check for postback, and read the controls there and
process as you wish.
To redirect, you use the Response.Redirect method, similar to ASP.
By the way, that must be a very simple book if it deals with projects
with only one page/class?
Take a look at some of the examples provided on ASP.NET or
GotDotNet.com
-- ipgrunt