Is a Response.Redirect to the same page a Postback?

B

Bruce W..1

Is it a Postback if you do a Response.Redirect to the same page?

Thanks for your help.
 
A

alex bowers

hi,
response.redirect to the same page acts as if the client
has generated a fresh request to that page, so any server-
side code that is on the page will run again.
however, if you check the Page.isPostBack() property
after a response.redirect, it will return false because
the page isn't actually posting back to itself.

Hope this makes it clearer

alex
 
J

John Timney \(ASP.NET MVP\)

no - a postback is seen as a post/get submission where a response.redirect
is a new request (even with parameters).

--
Regards

John Timney (Microsoft ASP.NET MVP)
----------------------------------------------
<shameless_author_plug>
Professional .NET for Java Developers with C#
ISBN:1-861007-91-4
Professional Windows Forms
ISBN: 1861005547
Professional JSP 2nd Edition
ISBN: 1861004958
Professional JSP
ISBN: 1861003625
Beginning JSP Web Development
ISBN: 1861002092
</shameless_author_plug>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,898
Latest member
BlairH7607

Latest Threads

Top