Hi, I am new in ASP.NET and I have 2 simple question as below:
#1. Is that we use Response.Redirect() to switch from 1 .apsx to another .aspx?
#2. Hos to pass data from one .aspx to another .aspx?
regards,
Chris
Printable View
Hi, I am new in ASP.NET and I have 2 simple question as below:
#1. Is that we use Response.Redirect() to switch from 1 .apsx to another .aspx?
#2. Hos to pass data from one .aspx to another .aspx?
regards,
Chris
Yes, use the Response.Redirect to change pages when you need to in code. On the page itself, you can just use normal hyperlinks though.
To pass info from one page to the other, there are a couple different ways. You can use cookies, session variables, or a query string. The are all pretty simple to use. For an example of the query string, look up at the address bar. Everything after the ? is the query string.