Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 623519
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T19:06:04+00:00 2026-05-13T19:06:04+00:00

I have a custom control which has a RadioButtonList control in it. On selecting

  • 0

I have a custom control which has a RadioButtonList control in it. On selecting one of the radio buttons , the control does a postback to do some serverside work and the page reloads with the correct radiobutton selected. This works fine in my test page.

I’ve now moved the control into a page on the site it’s going to live in and when the radiobutton is selected, the postback occurs but when the page reloads the radiobutton is no longer selected. So it appears the the selection is no longer being saved into viewstate.

Any pointers as to what aspects of the new page I should be looking at would be very gratefully received.

Cheers

Adendum – a bit more info

Thanks for the advice Stephen

The control was originally developed as a web user control using the designer, very simple implementation , server side handlers for onload and when the radiobutton selection changes. Separate dll for code behind and an ascx. I then converted it to a custom control to pull the ascx into the dll with the compiled code behind.

I don’t dynamically create the control in the test page, there’s a tag and a <%@ Register …blah blah> at the top in the aspx to do that. The radiobuttonlist was dragged and dropped in the ascx using the designer, so I didn’t implement the code to create it. So all very vanilla.
I’m really looking for the differences that I should be looking at in the pages that use the control, to work out why it works in the test page but not in the site page it needs to reside in.

*********** Addition ***********
I had a short time to solve this problem and had to hand it over to another developer. When I find out from him what the solution was I’ll post it here.
Many thanks to all for their input.

*********** Answer *************
Here’s the answer from the developer that took over.

Your quiz control was fine mate, the reason the values weren’t being retained on postback was because of inherited functionality in the base class when you put it live. Essentially it did a DataBind in the page load method which in the page lifecycle is before the postback meethods get called, so it reset the values of the dropdowns. In the end I set up some viewstate properties which held the values of the dropdowns. So it wasn’t something you could have known about.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T19:06:05+00:00Added an answer on May 13, 2026 at 7:06 pm

    Got a response from the developer that took over the project ->

    “Your quiz control was fine mate, the reason the values weren’t being retained on postback was because of inherited functionality in the base class when you put it live. Essentially it did a DataBind in the page load method which in the page lifecycle is before the postback meethods get called, so it reset the values of the dropdowns. In the end I set up some viewstate properties which held the values of the dropdowns. So it wasn’t something you could have known about.”

    Hope this helps someone.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 397k
  • Answers 397k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Use the .configuration property which allows for authentication and other… May 15, 2026 at 3:16 am
  • Editorial Team
    Editorial Team added an answer Yes, without sorting the data a linear search is about… May 15, 2026 at 3:16 am
  • Editorial Team
    Editorial Team added an answer EDIT: The < 5.3 requirement was added after the response… May 15, 2026 at 3:16 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.