examples asp.net mvc authentication


i'm looking examples asp.net mvc integrated asp.net forms-authentication formed membership providers correct post scenarios. i'm looking best practices here.



let's contend i have contacts list database name field, userid domain tied aspnet_users userid field. i guess something this:



public actionresult save([bind(include="name")] hit contact)
{
// zero etc. checks wanting example
membershipuser currentuser = provider.getuser(user.identity.name, true);
contact.userid = (guid)currentuser.provideruserkey;
//save etc.
}


any tips guides one?



Comments

Popular posts from this blog

list macos calm editors formula editors

how i practical urls indicate .aspx pages asp.net deployed an iis? (preferably but iis)

jaxb - xjc - reworking generated typesafe enum category members