How can I add a confirmation message "Please confirm that you want to proceed with the selected value. Click OK to proceed." when rb1 value is changed? If user clicks OK then it should execute rb1_SelectedIndexChanged, otherwise it should not.
<
asp:RadioButtonList
ID
=
"rb1"
runat
=
"server"
OnSelectedIndexChanged
=
"rb1_SelectedIndexChanged"
AutoPostBack
=
"true"
>
<
asp:ListItem
Value
=
"1"
>1</
asp:ListItem
>
<
asp:ListItem
Value
=
"0"
>0</
asp:ListItem
>
</
asp:RadioButtonList
>
code behind:
protected void rb1_SelectedIndexChanged(Object sender, EventArgs e)
{
--call a stored procedure to update the database with the newly selected rb1.Value
}