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.
是否可以在 ext.net 中使用模型参数?我正在尝试将ext:label文本属性设置为,<%=Html.Encode(Model.Name)%>但出现错误,我也尝试使用<%# %>,但它不起作用。
ext:label
<%=Html.Encode(Model.Name)%>
<%# %>
谢谢
多伦
请尝试以下
<ext:Label ID="lblTest" runat="server" > <Content > <%= Html.Encode(Model.Name) %> </Content> </ext:Label>
您可以通过innerHTML属性访问标签值。
祝你好运
沙洛姆