Quantcast
Channel: SharePoint 2010 - Setup, Upgrade, Administration and Operations forum
Viewing all articles
Browse latest Browse all 13778

Custom Login Web Part In SharePoint 2010 Forms Based

$
0
0

Hi ,

Im trying to make Custom Login Web Part In SharePoint 2010 Forms Based , all membership configration is done . 

my question is why (Login1.username , Login1.password ) give this error : 

 login1 does not exist in the current context

protected void Login1_Authenticate(object sender, AuthenticateEventArgs e)
02        {
03            string membership = "MembershipProvider";
04            string role = "RoleProvider";
05 
06            e.Authenticated = SPClaimsUtility.AuthenticateFormsUser(new Uri(SPContext.Current.Web.Url),Login1.UserName,Login1.Password);
07 
08            if (!e.Authenticated) return;
09 

10            SecurityToken token = SPSecurityContext.SecurityTokenForFormsAuthentication(new Uri(SPContext.Current.Web.Url), membership, role,

Login1.UserName, Login1.Password);




Viewing all articles
Browse latest Browse all 13778

Latest Images

Trending Articles



Latest Images

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