Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Asp.net identity: and after?

$
0
0

Hi,

From a basic web project, I've added a folder for member space, asp.net membership on sql server as well as account creation and login pages. J'ai paramétré asp.net avec son outil d'administration de site web.

So far so good. Except that I can not at all add fields to my users's table or create another table where to store user-related information. The reason: it is impossible to insert the identity of the logged-on user into a SQL SERVER query. In code behind, i've stocked the username in a dim but the sqldatasource tool don't want to read it.

Code behind of user connected page:

  Dim username As String = System.Security.Principal.WindowsIdentity.GetCurrent().Name

Please Help.


Viewing all articles
Browse latest Browse all 9386

Trending Articles



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