I want to call method of a particular class to assign a text to asp.net control. Throwing error called server tag not well formed. Note: no server side code
<asp:button id="btn" runat="server" text="<%#class1.getText("btn")%>"/>
在执行这样的内联代码时,必须使用单引号来区分text
值的开头和结尾。
<asp:button id="btn" runat="server" text='<%#class1.getText("btn")%>'/>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.