在我的网站的右上方显示登录名控件 [英] Display Login name Control in the right top of my site

查看:134
本文介绍了在我的网站的右上方显示登录名控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在使用登录名"控件.
这是代码:

Hello guys,

I am working on LogIn Name control.
Here is the code:

<asp:loginname id="LoginName" formatstring=" Welcome,{0}" runat="server" xmlns:asp="#unknown" />



这是在页面左侧显示登录用户名,但我想在网站的右上方显示它.

我可能需要更改格式字符串属性,但不知道如何.



This is displaying the login user name in left side of my page but I want to show it on right top of my site.

I may need to change the format string property but don''t know how.

推荐答案

将loginname控件保留在div或表中,并将align设置为正确.

keep the loginname control in a div or table and set the align as right.

<div align = "right"> some text</div>



对于登录控制,您可以用ur control替换soemtext



For login control, you can replace soemtext by ur control


这篇关于在我的网站的右上方显示登录名控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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