显示当前用户名 [英] Show current User Name

查看:97
本文介绍了显示当前用户名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好先生,

请举例说明如何在lpages中显示当前用户名的示例。我试着在谷歌搜索,但我知道在哪里以及如何编写代码。



如果你有任何相关的例子,请通过邮件发送给我[已删除您感兴趣的电子邮件]

Hello Sir,
Please give me the code with example how to show current user name in lpages. I hv try to search in google but i cnt understand where & how to write the code.

if u have any example of this related , please send me through mail [email removed in your interest]

推荐答案

我认为您应首先学习会话概念

观看此视频您将获得所有关于会话的想法。 。



https://www.youtube.com/watch?v=Zg1P97J12Rk&list=PL6n9fhu94yhXQS_p1i-HLIftB9Y7Vnxlo [ ^ ]
I Think You should learn Session Concept First
View This Video You will get all Idea About Session..

https://www.youtube.com/watch?v=Zg1P97J12Rk&list=PL6n9fhu94yhXQS_p1i-HLIftB9Y7Vnxlo[^]


使用以下代码显示当前用户名





Page.User.Identity.Name.ToString()
use following code to display current user name


Page.User.Identity.Name.ToString()


这篇关于显示当前用户名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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