![](/img/trans.png)
[英]Is there a way to use LINQ to change the 'checked' radio button in a radio button list?
[英]can i use radio button list as Submit button?
我有:
<asp:RadioButtonList ID="selectedYesNoQuestionBlock7" runat="server"
RepeatDirection="Horizontal" OnSelectedIndexChanged="Question7GotAnswered">
<asp:ListItem Text="Yes" Value="1"></asp:ListItem>
<asp:ListItem Text="No" Value="0"></asp:ListItem>
</asp:RadioButtonList>
....
<div id="btCreate" style="margin-left: 254px; margin-top: 10px;">
<asp:Button runat="server" Text="Categorize" ID="btCategorize" />
</div>
我想在選擇列表項之后提交“ wothout”按鈕。 有可能嗎?如何?
為RadioButtonList
設置AutoPostBack="true"
<asp:RadioButtonList AutoPostBack="True" ID="selectedYesNoQuestionBlock7"
runat="server" RepeatDirection="Horizontal"
OnSelectedIndexChanged="Question7GotAnswered">
...
</asp:RadioButtonList>
查看RadioButtonList
控件公開的事件,然后將代碼放入適當的事件處理程序中。 我想您也應該將控件設置為True AutoPostBack
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.