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
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