This is a migrated thread and some comments may be shown as answers.

RadButtons - wha?

2 Answers 42 Views
Button
This is a migrated thread and some comments may be shown as answers.
Joe
Top achievements
Rank 2
Joe asked on 26 Feb 2012, 03:44 AM
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 Answers, 1 is accepted

Sort by
0
Joe
Top achievements
Rank 2
answered on 26 Feb 2012, 10:11 PM
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.
0
Slav
Telerik team
answered on 29 Feb 2012, 11:52 AM
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,
Slav
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.
Tags
Button
Asked by
Joe
Top achievements
Rank 2
Answers by
Joe
Top achievements
Rank 2
Slav
Telerik team
Share this question
or