Answer:
It is a method of the Response object and has been introduced in ASP.NET 4.0.
It redirects permanently to the target page and returns a code 301.
Response.Redirect, which performed temporary redirection to the target page and returned code 302.
This effect can be viewed in search engines.
Example:
We are in Default.aspx and use Response.Redirect("Default2.aspx");
Both pages exist:
If RedirectPermanent is used,Default.aspx will no longer exist
Asked In: Many Interviews |
Alert Moderator