-
Dec 20th, 2018, 01:13 AM
#1
Thread Starter
New Member
Redirect Permanent in ASP.Net
What is Redirect Permanent in ASP.Net?
-
Sep 2nd, 2019, 01:51 AM
#2
Member
Re: Redirect Permanent in ASP.Net
(1) From, ASP.Net 4 RedirectPermanent has been introduced.
(2) RedirectPermanent will send HTTP 301 (Permanent Redirect) code while Redirect sends HTPP 302 (Redirect) code.
(3) Response.Redirect() returns 302 to the browser in which asked resource is temporarily moved to other location.
(4) Response.RedirectPermanent() redirect returns 301 to the browser as response from server in which browser doesn’t ask the same resource from old URL anymore – it uses URL given by Location header.
Syntax::
Code:
Response.RedirectPermanent("about.asp");
Do refer this link:: https://docs.microsoft.com/en-us/dot...tframework-4.8
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|