How to Redirect Page permanently with status code 301 in Dot Net below 4.0 Framework?

 Posted by Vishalneeraj-24503 on 3/1/2015 | Category: ASP.NET Interview questions | Views: 515 | Points: 40
Answer:

Use below code:-
Response.Status = "301 Moved Permanently";

Response.AddHeader("Location", "/new_page.aspx/");
Response.End();


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response