Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否有任何可能的方法来编辑此代码
<asp:LoginName ID="LoginName1" runat="server" style="top: 165px; left: 888px; position: absolute;" Font-Names="verdana" ForeColor="black" Font-Size="13px" />
所以我可以显示一个链接到页面的img,而不是显示用户名
正如@PraVN 所说,FormatString应该更适合这个:
FormatString
<asp:LoginName ID="LoginName1" runat="server" FormatString="<a href="http://www.myurl.com"><img src='myimage.jpg' /></a>" />