ASP.NET 2.0成员身份登录事件 [英] ASP.NET 2.0 Membership Login event

查看:59
本文介绍了ASP.NET 2.0成员身份登录事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在一个网站上工作,我正在使用ASP.NET 2.0及其会员资格

功能来处理安全问题。当有人登录时,我需要运行一小段代码。登录控件的哪个事件将是最好的地方

这个?我没有运气让这个工作。我认为这个

会很常见,不应该这么难。任何帮助将是

赞赏。谢谢。

I am working on a site, and I am using ASP.NET 2.0 and its Membership
features to handle security. I need to run a little piece of code when
someone logs in. What event of the Login control would be the best place to
put this? I am having no luck getting this to work. I would think this
would be pretty common and shouldn''t be this hard. Any help will be
appreciated. Thanks.

推荐答案

lanem写道:
我正在一个网站上工作,我正在使用ASP.NET 2.0和其会员资格
处理安全性的功能。当有人登录时,我需要运行一小段代码。登录控件的什么事件将是最好的地方?我没有运气让这个工作。我认为这很常见,不应该这么难。
任何帮助都将受到赞赏。谢谢。
I am working on a site, and I am using ASP.NET 2.0 and its Membership
features to handle security. I need to run a little piece of code
when someone logs in. What event of the Login control would be the
best place to put this? I am having no luck getting this to work. I
would think this would be pretty common and shouldn''t be this hard.
Any help will be appreciated. Thanks.




您应该覆盖ValidateUser。


-

Jim Cheshire
JIMCO软件
http://www.jimcosoftware.com


FrontPage 2000的FrontPage插件 - 2003



You should override ValidateUser.

--
Jim Cheshire
JIMCO Software
http://www.jimcosoftware.com

FrontPage add-ins for FrontPage 2000 - 2003



你能给我一些吗?细节好吗?在这种情况下,我真的不知道

将如何帮助。谢谢。


JIMCO软件写道:
Could you give me some more details please? I don''t really know how that
will help in this case. Thanks.

"JIMCO Software" wrote:
lanem写道:
我正在一个网站上工作,我正在使用ASP.NET 2.0及其会员
功能来处理安全。当有人登录时,我需要运行一小段代码。登录控件的什么事件将是最好的地方?我没有运气让这个工作。我认为这很常见,不应该这么难。
任何帮助都将受到赞赏。谢谢。
I am working on a site, and I am using ASP.NET 2.0 and its Membership
features to handle security. I need to run a little piece of code
when someone logs in. What event of the Login control would be the
best place to put this? I am having no luck getting this to work. I
would think this would be pretty common and shouldn''t be this hard.
Any help will be appreciated. Thanks.



你应该覆盖ValidateUser。

-
Jim Cheshire
JIMCO软件
http://www.jimcosoftware.com

FrontPage 2000的FrontPage加载项 - 2003



You should override ValidateUser.

--
Jim Cheshire
JIMCO Software
http://www.jimcosoftware.com

FrontPage add-ins for FrontPage 2000 - 2003



lanem写道:
你能告诉我更多细节吗?在这种情况下,我真的不知道如何帮助。谢谢。
Could you give me some more details please? I don''t really know how
that will help in this case. Thanks.




你说当用户通过会员登录时你想要执行一些代码。

如果你想这样做,你就是需要覆盖ValidateUser。这是用户通过会员登录时执行的

方法。


-

Jim Cheshire
JIMCO软件
http://www.jimcosoftware.com


FrontPage 2000 - FrontPage加载项



You said you wanted to execute some code when a user logs in via Membership.
If you want to do that, you would need to override ValidateUser. That''s the
method that executes when users log in via Membership.

--
Jim Cheshire
JIMCO Software
http://www.jimcosoftware.com

FrontPage add-ins for FrontPage 2000 - 2003



这篇关于ASP.NET 2.0成员身份登录事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆