Products

Solutions

Resources

Partners

Community

About

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Advanced AddThis Settings

Return to previous page

  • 4/7/2015
  • 2430 Views

Comments

2430 Views

Advanced AddThis Settings

Last updated long time ago

Comments

Common

(Enter the content of this article below)

Advanced

 
AddThis offers free social media and sharing tools via its JavaScript API. However, some of the advanced features use a format that conflicts with ASP.NET.

Any attribute in the format source:object:attribute = value such as g:plusone:size=small will result in a "String X contains too many device filters" error.

For these features, a .Net function is required. For example, working with the Google Plusone button:


< script runat="server">
Protected Sub Page_Load()
End Sub
Protected Function GetPlusoneCode() As String
Return String.Format("{0}=""{1}""", "g:plusone:size", "small")
End Function
script >

<div class="addthis_toolbox addthis_default_style addthis_32x32_style">
<a class="addthis_button_google_plusone" <%= GetPlusoneCode() %>>a>
div>


script tag malformated for security
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out