[英]Asp Radiobutton error
我希望ID與數據項中的數據相對應,以便知道用戶單擊了哪個單選按鈕:我寫道:
<asp:RadioButton ID="<%# DataBinder.Eval(Container.DataItem, "IdFlight") %> " runat="server" GroupName="Flights" />
但是我得到了解析器錯誤:標簽的格式不正確。 有什么提示嗎?
您可以使用HTML Input Radio代替ASP.net Radio。 並編寫所需的jquery函數。
<input type="radio" id="<%# DataBinder.Eval(Container.DataItem, "blog_id") %> "/>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.