Search This Blog

Saturday, June 20, 2015

page.response.redirect is not working

In sharepoint some times we cant use the Response.Redirect.

So we can use SPUtility.Redirect to redirect to other pages.

SPUtility.Redirect("/SitePages/CustomAccessDenied.aspx", SPRedirectFlags.Static / SPRedirectFlags.Default / SPRedirectFlags.Trusted, HttpContext.Current);

Like this we can redirect to other pages in sharepoint

No comments:

Post a Comment

Restricting Custom People Picker to only one Sharepoint group programatically

Refer the following script files in your page,     <!-- For People Picker -->     <script type="text/javascript" src...