Posted by: eutychus - Sunday, 5 January 2025 12:48:03 |
---|
Since I am not that conversant in c# ... what lines should I add to the site.master.cs to get the membership name and number as session variables? |
Posted by: tha_watcha - Monday, 6 January 2025 06:38:18 |
---|
you can get the username via [code=csharp]if (Context.User.Identity.IsAuthenticated) { var username = Context.User.Identity.Name }[/code] do you mean with user number the user id? |
Posted by: eutychus - Monday, 6 January 2025 11:46:29 |
---|
[quote=tha_watcha;74340]you can get the username via [code=csharp]if (Context.User.Identity.IsAuthenticated)     {      var username = Context.User.Identity.Name     }[/code] do you mean with user number the user id?[/quote] Yes, please. But they also have to be stored as session variables. |
Posted by: eutychus - Monday, 6 January 2025 21:28:01 |
---|
NVM ... I figured it out. Thanks! |