Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Is a Response.Redirect to the same page a Postback?

Reply
Thread Tools

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

 
 
Bruce W..1
Guest
Posts: n/a
 
      12-10-2003
Is it a Postback if you do a Response.Redirect to the same page?

Thanks for your help.
 
Reply With Quote
 
 
 
 
S. Justin Gengo
Guest
Posts: n/a
 
      12-10-2003
No.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche


"Bruce W..1" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Is it a Postback if you do a Response.Redirect to the same page?
>
> Thanks for your help.



 
Reply With Quote
 
 
 
 
alex bowers
Guest
Posts: n/a
 
      12-10-2003
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
>-----Original Message-----
>Is it a Postback if you do a Response.Redirect to the

same page?
>
>Thanks for your help.
>.
>

 
Reply With Quote
 
John Timney \(ASP.NET MVP\)
Guest
Posts: n/a
 
      12-10-2003
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>
----------------------------------------------

"Bruce W..1" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Is it a Postback if you do a Response.Redirect to the same page?
>
> Thanks for your help.



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
MVC - Multiple forms on same page using same controller action Mike Gleason jr Couturier ASP .Net 1 03-06-2009 01:49 PM
User Controls with same name on same page rgparkins@hotmail.com ASP .Net 3 05-16-2006 12:55 PM
Known issues using 2 of the same Web User Controls on the same page mrobins@gmail.com ASP .Net 2 05-04-2006 01:15 PM
Need same viewstate for same page across multiple servers =?Utf-8?B?UHVuaXNoZXI=?= ASP .Net 1 03-23-2006 03:54 PM
how to use same user control x number of times on same asp page David Hubbard ASP .Net 2 01-12-2006 03:56 PM



Advertisments