problem assigning declarative values in asp:hyperlink. error: this is not scriptlet. will output as plain text

后端 未结 4 1389
星月不相逢
星月不相逢 2021-02-12 15:02

I am trying to do this:

<%= WebContext.CurrentUser.UserName %>\' runat=\"server\" Text=\'&l         


        
4条回答
  •  孤街浪徒
    2021-02-12 15:14

    You can use data binding syntax <%# %>. Just be sure that your hyperlink is either in a databound control, such as a ListView item template, or that you explicitly call DataBind() on the control from code-behind.

提交回复
热议问题