I want to transfer SharePoint server from one page to another page.

 I want transfer SharePoint server from one page to another page. I have written the code:

Server.Transfer("/DefectManagement/DefectList/default.aspx")
I am getting the following error: Error 1 'Microsoft.SharePoint.Portal.Topology.Server' does not contain a definition for 'Transfer' What should I do?

May 26th, 2015 2:08am

You can redirect the server in SharePoint by following methods:

  • SPUtility.Redirect
  • Page.Response.Redirect
  • Context.Reponse.Redirect

Use SPUtility.Redirect as already suggested by Rajendra because it is best for application pages
May 26th, 2015 11:58pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics