SharePoint User Group UK

Share the knowledge!

Welcome to SharePoint User Group UK Sign in | Join | Help
in
Home Blogs Forums Photos Files Roller

SPRedirectFlags.RelativeToLayoutsPage admin Equivalent

Last post 03-10-2010, 12:34 PM by balle3201. 1 replies.
Sort Posts: Previous Next
  •  07-01-2009, 10:45 AM 19641

    SPRedirectFlags.RelativeToLayoutsPage admin Equivalent

    Hi

    I have created a custom application page and I have deployed it to _admin.  I then have a feature which creating a link to the page from the Applications Management page within SharePoint Administration.  This is all fine.  On my page I have an OK and Cancel button.  When I click these button I want to return back to _admin/applications.aspx.

    If I use the following code with the click event I get returned to the layouts section.

    SPUtility.Redirect("applications.aspx", SPRedirectFlags.UseSource | SPRedirectFlags.RelativeToLayoutsPage, this.Context);

    Does anyone know if there is an equivilant Admin section method. 

    One thought is that the command is correct but I am inheriting from layoutsPageBase instead of WebAdminPageBase.  The only problem is that when I deploy my solution while inheriting from WebAdminPageBase I get the following error

    Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

    Does anyone how to solve this error or if there is an equivalent command to SPRedirectFlags.RelativeToLayoutsPage for the admin section.

    Thanks in advance
    Paul

  •  03-10-2010, 12:34 PM 23174 in reply to 19641

    Re: SPRedirectFlags.RelativeToLayoutsPage admin Equivalent

    Hi.

    Maybe to late now, but this worked for me:

    SPUtility.Redirect("/_admin/applications.aspx", SPRedirectFlags.Default, this.Context);

    balle3201
    Norway
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems