Click here to Skip to main content
15,884,472 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
protected void RbListYesNo_SelectedIndexChanged(object sender, EventArgs e)
       {
          
          if (RbListYesNo.SelectedIndex ==0)
           {
              ModalPopupExtender1.Hide();
           }
           else if(RbListYesNo.SelectedIndex==1)
           {
               txtFlwId.Text = "";
               ModalPopupExtender1.Hide();
           }
       }


this is the code on modal popup.
as soon it comes to the" if condition" it not going inside the loop if the SelectedIndex is 0.
i have made the radio button list as auto post back =true.

plz help me..
Posted
Updated 14-Jul-12 0:27am
v3
Comments
Sandeep Mewara 14-Jul-12 6:31am    
I would still like to know why - Yes/No modal popups generally have two buttons - kind of standard UI. Any specific reason to have radio buttons for it?
bbirajdar 14-Jul-12 6:36am    
where is the loop in your code ?
bbirajdar 14-Jul-12 6:37am    
Did you debug to check that the value of RbListYesNo.SelectedIndex is '0' ?
Member 8388026 16-Jul-12 6:07am    
i added list items as 0 and 1 to radio buttonlist

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900