Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                Share.png
                                0

                                Hello Daniel,

                                Thank you for the image. I see that you try to implement a button that is available on the web. I am not sure that you examined this question before asking it, so I recommend that you follow the Google Search link to see different implementations of your task.

                                Thanks,
                                Vest

                                0

                                Hi Vest,

                                Thanks for info.

                                 <h3> Using a tag</h3>
                                    <!-- AddToAny BEGIN -->
                                <a class="a2a_dd" href="http://www.addtoany.com/share_save"><img src="http://static.addtoany.com/buttons/share_save_171_16.png" width="171" height="16" border="0" alt="Share"/></a>
                                <script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script>
                                <!-- AddToAny END -->
                                <br /><br />

                                I want to use ASPxHyperLink insteas of a tag :
                                 I tried this aspx code but not work well , waht do I miss?

                                 <!-- AddToAny BEGIN -->
                                 <dx:ASPxHyperLink class="a2a_dd" ID="ASPxHyperLink1" runat="server" NavigateUrl="http://www.addtoany.com/share_save" ImageUrl="http://static.addtoany.com/buttons/share_save_171_16.png" >
                                 </dx:ASPxHyperLink>
                                  <script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script>
                                 <!-- AddToAny END -->
                                 <br />

                                Daniel Shitrit

                                0

                                Daniel,

                                Thank you for the code. Please tell me why you decided to replace the HTML page markup which works with our control? I understand that you like our controls, however usually it might be required to replace default controls with ours to improve page functionality. I am not sure that the provided code makes the page better than if you use a component from AddToAny.

                                I have examined your layout and found out that you use the class property for the ASPxHyperLink control. However, according to our documentation the CssClass property must be used:

                                [ASPx]
                                <dx:ASPxHyperLink ... CssClass="a2a_dd" ... Width="171" Height="16">

                                Thanks,
                                Vest

                                0

                                Hi Vest,

                                Thanks for your help.

                                Summerze:

                                Aim:
                                ====
                                How to create a share button?

                                Solution:
                                ======
                                1.Full Aspx code using a tag and ASPxHyperLink :

                                <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ShareButton.aspx.cs" Inherits="WebUI.ShareButton" %>

                                <%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.1, Version=10.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
                                    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>

                                <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

                                <html xmlns="http://www.w3.org/1999/xhtml">
                                <head runat="server">
                                    <title>Share Buttons</title>
                                </head>
                                <body>
                                    <form id="form1" runat="server">
                                    <div>
                                     
                                        <h1> <u>Share Buttons</u></h1>

                                        <dx:ASPxHyperLink ID="ASPxHyperLinkShareButtonsInfo" runat="server" Text="For more info about share buttons" NavigateUrl="http://www.addtoany.com">
                                        </dx:ASPxHyperLink>
                                        <br /><br />

                                        <h2> <u>Version 1 </u></h2>
                                        <h3> Using DevExpress ASPxHyperLink</h3>
                                        <!-- AddToAny BEGIN -->
                                        <dx:ASPxHyperLink CssClass="a2a_dd" ID="ASPxHyperLink1" runat="server" NavigateUrl="http://www.addtoany.com/share_save" ImageUrl="http://static.addtoany.com/buttons/share_save_171_16.png" width="171" height="16" border="0" alt="Share">
                                        </dx:ASPxHyperLink>
                                        <script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script>
                                        <!-- AddToAny END -->
                                        <br />
                                        <h3> Using a tag</h3>
                                        <!-- AddToAny BEGIN -->
                                    <a class="a2a_dd" href="http://www.addtoany.com/share_save"><img src="http://static.addtoany.com/buttons/share_save_171_16.png" width="171" height="16" border="0" alt="Share"/></a>
                                    <script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script>
                                    <!-- AddToAny END -->
                                    <br /><br />

                                    <h2> <u>Version 2 </u></h2>
                                        <h3> Using DevExpress ASPxHyperLink</h3>
                                        <!-- AddToAny BEGIN -->
                                        <dx:ASPxHyperLink CssClass="a2a_dd" ID="ASPxHyperLink2" runat="server" NavigateUrl="http://www.addtoany.com/share_save" ImageUrl="http://static.addtoany.com/buttons/share_save_120_16.gif" width="120" height="16" border="0" alt="Share">
                                        </dx:ASPxHyperLink>
                                        <script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script>
                                        <!-- AddToAny END -->
                                        <br />
                                        <h3> Using a tag</h3>
                                    <!-- AddToAny BEGIN -->
                                    <a class="a2a_dd" href="http://www.addtoany.com/share_save"><img src="http://static.addtoany.com/buttons/share_save_120_16.gif" width="120" height="16" border="0" alt="Share"/></a>
                                    <script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script>
                                    <!-- AddToAny END -->
                                    <br /><br />

                                    <h2> <u>Version 3 </u></h2>
                                        <h3> Using DevExpress ASPxHyperLink</h3>
                                        <!-- AddToAny BEGIN -->
                                        <div class="a2a_kit a2a_default_style">
                                        <dx:ASPxHyperLink CssClass="a2a_dd" ID="ASPxHyperLink3" runat="server" Text="Share" NavigateUrl="http://www.addtoany.com/share_save">
                                        </dx:ASPxHyperLink>
                                        <span class="a2a_divider"></span>
                                        <dx:ASPxHyperLink CssClass="a2a_button_facebook" ID="ASPxHyperLink4" runat="server" >
                                        </dx:ASPxHyperLink>
                                        <dx:ASPxHyperLink CssClass="a2a_button_twitter" ID="ASPxHyperLink5" runat="server" >
                                        </dx:ASPxHyperLink>
                                        <dx:ASPxHyperLink CssClass="a2a_button_facebook" ID="ASPxHyperLink6" runat="server" >
                                        </dx:ASPxHyperLink>
                                        </div>
                                    <script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script>
                                        <!-- AddToAny END -->
                                        <br />
                                        <h3> Using a tag</h3>
                                    <!-- AddToAny BEGIN -->
                                    <div class="a2a_kit a2a_default_style">
                                    <a class="a2a_dd" href="http://www.addtoany.com/share_save">Share</a>
                                    <span class="a2a_divider"></span>
                                    <a class="a2a_button_facebook"></a>
                                    <a class="a2a_button_twitter"></a>
                                    <a class="a2a_button_email"></a>
                                    </div>
                                    <script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script>
                                    <!-- AddToAny END -->
                                    <br />

                                    <h2> <u>Version 4 </u></h2>
                                        <h3> Using DevExpress ASPxHyperLink</h3>
                                        <!-- AddToAny BEGIN -->
                                        <dx:ASPxHyperLink CssClass="a2a_dd" ID="ASPxHyperLink7" runat="server" NavigateUrl="http://www.addtoany.com/share_save" ImageUrl="http://static.addtoany.com/buttons/share_save_256_24.png" width="256" height="24" border="0" alt="Share">
                                        </dx:ASPxHyperLink>
                                        <script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script>
                                        <!-- AddToAny END -->
                                        <br />
                                        <h3> Using a tag</h3>
                                    <!-- AddToAny BEGIN -->
                                    <a class="a2a_dd" href="http://www.addtoany.com/share_save"><img src="http://static.addtoany.com/buttons/share_save_256_24.png" width="256" height="24" border="0" alt="Share"/></a>
                                    <script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script>
                                    <!-- AddToAny END -->
                                    <br /><br />

                                    <h2> <u>Version 5 </u></h2>
                                        <h3> Using DevExpress ASPxHyperLink</h3>
                                        <!-- AddToAny BEGIN -->
                                        <dx:ASPxHyperLink CssClass="a2a_dd" ID="ASPxHyperLink8" runat="server" NavigateUrl="http://www.addtoany.com/share_save" Text="Share">
                                        </dx:ASPxHyperLink>
                                    <script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script>
                                        <!-- AddToAny END -->
                                        <br />
                                        <h3> Using a tag</h3>
                                    <!-- AddToAny BEGIN -->
                                    <a class="a2a_dd" href="http://www.addtoany.com/share_save">Share</a>
                                    <script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script>
                                    <!-- AddToAny END -->

                                    </div>
                                    </form>
                                </body>
                                </html>

                                2. Attched the file and how is scrrenshhot how is look like.

                                P.S
                                I tried to use your controls even there is no improvment,
                                Your controls like ASPxHyperLink suoport your Themes suuport.

                                Thanks,
                                Daniel.

                                ShareButton.rar
                                0

                                Vest Thanks alot.

                                If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

                                FOLLOW US

                                DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, Silverlight, ASP.NET, WinForms, HTML5 or Windows 8, DevExpress tools help you build and deliver your best in the shortest time possible.

                                Copyright © 1998-2014 Developer Express Inc.
                                All trademarks or registered trademarks are property of their respective owners