我有2个radiobuttonlist2。当用户选择其中一个时,它会自动回发并清除另一个radiobuttonlist的选择。我该如何解决这个问题?
这是其选择被清除的radiobuttonlist
<asp:RadioButtonList ID="rbl_odeme_secenekleri" runat="server" RepeatDirection="Horizontal" AutoPostBack="false" OnSelectedIndexChanged="rbl_odeme_secenekleri_SelectedIndexChanged">
</asp:RadioButtonList>
这是我如何将项目加载到上面的单选按钮列表
if (!IsPostBack)
{
double total = Convert.ToDouble(txt_total.Text);
double total_with_discount = total * 0.94;
rbl_odeme_secenekleri.Items.Add(new ListItem("Tek Çekim(%6 indrimli): " + Math.Round(total_with_discount,2) + " TL", Math.Round(total_with_discount,2) + ""));
rbl_odeme_secenekleri.Items.Add(new ListItem("Taksitli: " + total + " TL", total + ""));
rbl_odeme_secenekleri.SelectedIndex = 0;
}
我正在检查是否(!IsPostBack),所以它不应该被清除。任何想法?