ASP.NET显示在线用户名 [英] Asp.net display online user name
本文介绍了ASP.NET显示在线用户名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
hi ..
我想要一个有关用户登录时C#应用程序的代码,而不是所有以Grid View控件形式显示的用户名..
谢谢..
hi..
i want a code about c# application when user login than all user name display in Grid View control other form..
thank you..
推荐答案
您需要为在线用户维护数据库中用户的状态,然后在绑定gridview时在其中添加条件为"status = true"
Hi,
You need to maintain status of user in database for online users then add where condition with ''status=true'' at the time of binding gridview
您需要在登录页面设计上阅读.使用ASP.NET2.0中发布的MS登录控件将为您提供所有必需的功能,例如直接显示名称.
在这里查看:传统登录页面设计讨论 [此处 [ ^ ].
对于使用登录控件构建登录页面,请查看:
如何:创建ASP.NET登录页 [ ASP.NET登录控件概述 [如何将登录,角色和配置文件系统添加到ASP.NET 2.0 [ ^ ]
You need to read on Login page design. Using MS login control released in ASP.NET2.0 will give you all needed features like display name directly.
Look here:Traditional Login page design discussion[^]
Login Controls that were released by Microsoft, have a look at them here[^].
For, building Login Page using Login control, look:
How to: Create an ASP.NET Login Page[^]
ASP.NET Login Controls Overview[^]
How to add a Login, Roles and Profile system to an ASP.NET 2.0 [^]
这篇关于ASP.NET显示在线用户名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文