如何将登录页面中的用户名显示为HTML标记 [英] How to display username from login page in to HTML tag
问题描述
在登录页面我有用户名和密码
用户名textbox1.text Rakesh
密码textbox1.text
我在asp.net源代码中有员工页面如下
< asp:Panel ID =panelrunat =server>
员工ID EMP001欢迎Rakesh日期23-jan-18退出>
In login page i have username and password
Username textbox1.text Rakesh
Password textbox1.text
I have employee page in asp.net source as follows
<asp:Panel ID="panel" runat="server">
Employee Id EMP001 Welcome Rakesh Date 23-jan-18 Log out>
推荐答案
简单谷歌搜索的前几个结果。 asp.net在页面之间传递数据
如何:在ASP.NET Web窗体页面之间传递值 [ ^ ]
在ASP.NET中的页面之间传递数据 [ ^ ]
5种方式在asp.net中发送数据黑白页面 [ ^ ]
传输页面值转到另一页 [ ^ ]
First few results from simple google search. "asp.net pass data between pages"
How to: Pass Values Between ASP.NET Web Forms Pages[^]
Passing Data between Pages in ASP.NET[^]
5 ways to send data b/w pages in asp.net[^]
Transferring page values to another page[^]
我要显示rakesh用户名从登录页面到P标签中的Employee页面。
i want to display rakesh username from login page to Employee page in P tag.
在aspx中添加ap标签,并将元素中的runat =server属性添加为
add a p tag in the aspx and add runat="server" attribute to the element as
<p id="pid" runat="server"></p>
并从c#访问它
and access it from c# as
pid.InnerText = "User Name";
这篇关于如何将登录页面中的用户名显示为HTML标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!