RadButtons - wha?

3 posts, 0 answers
  1. Joe
    Joe avatar
    10 posts
    Member since:
    Jun 2011

    Posted 25 Feb 2012 Link to this post

    Strange things are happening with RadButtons, IE9, and Visual Studio 2010.

    I started a project and created a webform based on a master page. I added 4 radbuttons, 2 for users and 2 for admins.

    The admin buttons are enabled=false and visible=false and will be enabled and visible if user is an admin. The user buttons are also disabled (still visible though) and the text is changed IF the user logged in is an admin.

    Initial page load works as desired and if the page is refreshed it works as desired.

    Now begins the bizarre behavior.

    1. User loads the page and only sees the two user buttons (the admin buttons are invisible). Correct :)
    2. User navigates off the page.
    3. User clicks back button.
    4. ALL 4 buttons are visible and all 4 buttons are in a state as if an admin is logged in. What?
    5. Click refresh and all is fine.

    Frustrated I started ripping my code apart to try and find where this was happening and nothing I am doing changes this behavior in the slightest. I went as far as completely removing ANY code for three of the buttons (they should not exist at all) and yet steps 2-5 above are the same every time. How can these buttons be on the page after clicking the back button on the browser when they no longer exist in my code? Where the heck are they coming from?
  2. Joe
    Joe avatar
    10 posts
    Member since:
    Jun 2011

    Posted 26 Feb 2012 Link to this post

    Well, just for the heck of it I made a new project cutting and pasting the code from the previous project to try and recreate the issue and I cannot. Using the back button on the first project does not cause the page to properly reload but the new project does properly reload the page.


    I am just going to migrate to a new project and see if it breaks again.
  3. DevCraft R3 2016 release webinar banner
  4. Slav
    Slav avatar
    1351 posts

    Posted 29 Feb 2012 Link to this post

    Hello Joe,

    It appears that you have resolved the issue, as you reported in your support ticket on the matter. Please verify if there are other problems related to the RadButton control that need to be resolved.

    All the best,
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top