SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Enthusiast
    Join Date
    Aug 2007
    Posts
    74
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    ASP.NET / C#.net : RadioButtonList AutoPostBack only posting back new items

    Hi,

    I have a RadioButtonList and Autopostback is set to true.

    The first time I click an item on the list, the postback works fine, when I click on a different item, it works fine, but if I go and click on an item that I have already 'clicked' before, then it doesn't actually postback.

    Has anyone had this problem before? If so, how did you sort it out?

    Cheers,

    William

  2. #2
    SitePoint Enthusiast
    Join Date
    Aug 2007
    Posts
    74
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can anyone help?

  3. #3
    SitePoint Wizard
    Join Date
    Feb 2007
    Posts
    1,274
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's not supposed to postback if there's no change. This is by design. Why is this a problem?

  4. #4
    SitePoint Enthusiast
    Join Date
    Aug 2007
    Posts
    74
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah obviously if there is no change then nothing will happen, what I was asking is if you click on an item that has already been clicked before, it doesnt postback.

    For example.... You have Item A, Item B, Item C, Item D.

    Selected value is A, you click on B and it posts back. You click on C, it posts back. But if you click on B again, it doesnt post back for some reason.

  5. #5
    SitePoint Wizard
    Join Date
    Feb 2007
    Posts
    1,274
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hmm. I just tested it. It posts back each and every time. You databinding this list and doing it on every postback, bychance?

  6. #6
    SitePoint Enthusiast
    Join Date
    Aug 2007
    Posts
    74
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have manually entered the list items. Don't worry, I will sort something out.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •