Odd issue!?

2 posts, 0 answers
  1. Terri-Lynn
    Terri-Lynn avatar
    45 posts
    Member since:
    Dec 2010

    Posted 03 Apr 2012 Link to this post

    Hi all:
    I've just updated my web application (Q1 2010 RadControls) and all went well.  I wanted to utilize this feature (SocialShare), and it works great on most pages, but not on others.  Here's what I've done:
    - add a radscriptmanager to my masterpage, and then also added the radsocialshare to the master page.  [works great]

    Oddly, in one of my administration pages, I needed to delete a scriptmanager since I can only have 1 per page, which I now have in my master page.  I noticed that in this page (updates news using sqldatasource; pretty basic), the user can do a simple update on one table, which has been working fine for the past year.  Since adding the socialshare, it's not working; not even giving me an error though.  If I comment out the social share code, it works again!? 

    Any help would be greatly appreciated!
  2. Marin Bratanov
    Marin Bratanov avatar
    5704 posts

    Posted 05 Apr 2012 Link to this post

    Hi Terri-Lynn,

    This is some really strange behavior that you are reporting. Are you using any of the Standard buttons in the RadSocialShare? I am asking this because the scripts we download from the social networks sometimes use global variables. If you are using such buttons I suggest that you remove only them (you should be able to keep the Styled buttons) and see if this helps. If it does - it would be odd that no JS error is thrown, yet  global variables could break your own code even without an error, simply by overriding values if their names match. Generally, the RadSocialShare is not a databound control and has very little server rendering, so I do not believe it would throw a server error that could be captured by a try-catch block and prevent other code from executing. I am saying this because you said you remove socialshare code, so if you have some custom code related to the control it could be causing some issue or throwing an error, but I cannot confirm this without being able to actually debug the scenario. Please check if this is the case. You can also check what happens if you replace the RadScriptManager with a regular ASP:ScriptManager in the master page.

    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