[英]Asp.net membership provider, login name\status
I'm trying to learn - how the login status or login name from the login wizard (asp.net membersip provider) know who is connected now.我正在尝试学习 - 登录向导(asp.net membersip 提供程序)的登录状态或登录名如何知道现在连接的人。 how it's know to display my name if i'm connected?
如果我已连接,如何知道显示我的名字? it's work by stored procedure?
它是通过存储过程工作的吗? if yes - how exactly?
如果是的话 - 究竟如何?
I want to learn that for my project.我想为我的项目学习这一点。 i'm trying to display "accaount details" for costumer - when he click on the button of "account details" he will get only his details.
我正在尝试为客户显示“帐户详细信息” - 当他单击“帐户详细信息”按钮时,他只会得到他的详细信息。 i know to work with LINQ and query strings, but it's not the same for this.
我知道使用 LINQ 和查询字符串,但这不一样。 so i think that if i will understand the login name, i will know how to do my project.
所以我认为如果我能理解登录名,我就会知道如何做我的项目。
I've seen the asp.net membership stored-procedure, and i tried to learned from the northwind database because they put there "order details", but i don't get the idea - how it get the userId..我已经看到了 asp.net 成员资格存储过程,我试图从北风数据库中学习,因为他们把“订单详细信息”放在那里,但我不明白 - 它是如何获取用户 ID 的。
Hope the question is clear.希望问题很清楚。 maybe I just completely lost my concentration and it's so simple.
也许我只是完全失去了注意力,这很简单。
Take a look at ScottGu's Membership Tutorial Series .看看ScottGu 的会员教程系列。 You probably won't need to read the complete series, but certainly part 1 will get you off on the right foot.
您可能不需要阅读完整的系列,但第 1 部分肯定会让您走上正轨。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.