Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11508

using SPUtility.EnsureAuthentication(spWeb) i am redirecting the page but it not happening.

$
0
0

hi,

requirement is to check the credentials of the user at the login page and if true then redirect from that login page to home page.

i am using this following code:

            SPSite spServer = SPControl.GetContextSite(Context);
            SPWeb spWeb = SPControl.GetContextWeb(Context);
            SPUtility.EnsureAuthentication(spWeb);
            SPUtility.Redirect(spWeb.Url, SPRedirectFlags.UseSource, Context);

i am not able to redirect the page.it is not ensuring the user or not evaluating the user credentials(windows credentials).the control is not coming at the sputility.redirect,


Viewing all articles
Browse latest Browse all 11508

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>