Sankar M
Sankar M

Reputation: 4779

Radiobutton loses values every postback

  1. There are Radio buttons 'Enable' and 'disable' inside an Update panel (say x)

  2. below that, I have 3 radio buttons 'Default' 'Upload Image' and 'Text' (say y)

  3. when I choose 'Disable' then 'y' will be hidden. else visible. This much works, no problem here

  4. when I choose 'Enable' it shows radio buttons in 'y'

  5. from that I choose any of those 3 buttons radio buttons in 'x' looses checked value

Upvotes: 0

Views: 694

Answers (1)

Akram Shahda
Akram Shahda

Reputation: 14771

You have to assign a different value for the RadioButton.GroupName for each RadioButton controls group.

Upvotes: 1

Related Questions