Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have master page and content pages. In master page I have buttons. On first loading the buttons are not going to respective click event. The tooltip class is also not working. If I go to other content pages these buttons works and also the tooltip works.
If this is done in a separate page instead of using in master page it works fine.

XML
<asp:UpdatePanel ID="ss" runat=server>
    <ContentTemplate>
            <a href="#"   alt="Pdsdsdsdsdsdsd, sdsdsdsdsdsd lease enter username"    style="  " class="tooltip ">
    <input ID="Button6" runat="server" type="button" value="Famous short eats" class="tooltip"  onserverclick="btnprasiddhishorteats_click"  />
    </ContentTemplate>
    </asp:UpdatePanel>
Posted
Updated 8-Nov-14 0:09am
v2
Comments
Manas Bhardwaj 8-Nov-14 6:27am    
It's difficult to tell from here. Did you try to debug?

1 solution

replace your anchor tag and html button tag with asp.net controls and check again.
<asp:HyperLink ID="HyperLink1" runat="server" CssClass="tooltip" NavigateUrl="#" Text="Link Text..." />
<asp:Button ID="Button6" runat="server"  CssClass="tooltip" Text="Famous short eats" onclick="btnprasiddhishorteats_click" />
 
Share this answer
 
v2
Comments
S.Rajendran from Coimbatore 8-Nov-14 10:34am    
DamithSL 8-Nov-14 10:44am    
how you define tooltip style?
S.Rajendran from Coimbatore 8-Nov-14 11:09am    
.tooltip
{
display: inline;
position: relative;
text-decoration: none;
top: 0px;
left: 4px;
border-style:none;
}



.tooltip:hover:after
{
background: #333;
background: rgba(0,0,0,.8);
border-radius: 5px;
top: -5px;
color: #fff;
content: attr(alt);
left: 160px;
padding: 5px 15px;
position: absolute;
z-index: 98;
width: 150px;
background-color:Red;
}
.tooltip:hover:before
{
border: solid;
border-color: transparent black;
border-width: 6px 6px 6px 0;
bottom: 20px;
content: "";
left: 155px;
position: absolute;
z-index: 99;
top: 3px;
}

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900