Results 1 to 2 of 2

Thread: Redirect Permanent in ASP.Net

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2018
    Location
    India
    Posts
    8

    Redirect Permanent in ASP.Net

    What is Redirect Permanent in ASP.Net?

  2. #2
    Member
    Join Date
    Jul 2019
    Location
    Ahmedabad
    Posts
    57

    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
  •  



Click Here to Expand Forum to Full Width