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 hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?