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 6665177
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:41:43+00:00 2026-05-26T02:41:43+00:00

While implementing google plus one button through addthis on one our localized pages where

  • 0

While implementing google plus one button through addthis on one our localized pages where the following data was retrieved from a backend (assume database), facing a wierd problem, the plus button is not getting loaded. we ajax based partial postback

The following html is added to the page only during a partial postback

<div class="addthis_toolbox addthis_default_style" style="float:right;">
   <a class="addthis_button_google_plusone" g:plusone:size="small"></a>
</div>

At the same time , the script is included through

ScriptManager.RegisterStartupScript(Page, typeof(string),
                                    "RegisterHTMLScript" + scriptID,
                                     scriptstring,
                                     false); 

Value of scriptstring is

<script type="text/javascript">
     var addthis_config = {"data_track_clickback":true};
     if (window.addthis) {
        addthis.toolbox('.addthis_toolbox'); 
        addthis.init(); 
     }
     else {
       $.getScript('http://s7.addthis.com/js/250/addthis_widget.js#username=XXXXX&domready=1'); 
       $.getScript('https://apis.google.com/js/plusone.js'); 
     }
 </script>

I am not able to see any client errors, but at the same time +1 button is not visible. What could be wrong?

Instead of RegisterStartupScript, I tried
1. adding ScriptReference programatically to the current script manager.
2. RegisterClientScriptInclude method on script manager.

But almost same result.

  • 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-26T02:41:44+00:00Added an answer on May 26, 2026 at 2:41 am

    Here it goes,

    During a partial postback, ASP.NET AJAX needs to know the list of dependent scripts that are to be downloaded so that it can announce “DOCUMENT IS READY” once all of them are downloaded.
    In ASP.NET 3.5 and below adding “notifyscriptloaded” is the only means for ASP.NET to know a dependent script resource has to be loaded – during a partial postback.

    When you register a script with notifyscriptloaded, ASP.NET waits till the script is downloaded and makes sure to call document ready only after downloading this. This way it ensures document ready of the script is being fired as expected.
    NOTE: ASP.NET 4.0 does NOT need this (I am not sure how it is done in it however).

    So the problem now is very clear. When using an external 3rd party javascript file as a reference, ASP.NET limits us to refer it only from static page header (or master page). There is no way to download the script during partial postback – Unless you have the control over thhird party script and add “notifyscriptloaded” in it.

    Solution, I had to make this external third party script a static reference in page header. This did not hurt me because, I anyway had several instances of +1 button across multiple pages.

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

Sidebar

Related Questions

While going through university and from following the development of SO, I've heard a
While implementing a FIFO I have used the following structure: struct Node { T
I am getting following exception while implementing mail feature for my local machine please
While implementing the code from this question on my project I realized there's 3
I am trying to match the following while implementing a GridBagLayout. The GBL is
while implementing an inline search function for our local file archive I've come up
I've been tasked with implementing Google Analytics inside our (ASP.NET) application. Here is the
i got stuck while implementing one webservice in iPhone, i think something is wrong
While implementing a design using nested generic collections, I stumbled across those limitations apparently
While implementing XML file reading/writing in my application I saw that when I call

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.