html按钮最初在母版页中不起作用 [英] html button not working in master page initially
本文介绍了html按钮最初在母版页中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有母版页和内容页。在母版页我有按钮。首次加载时,按钮不会进入相应的单击事件。工具提示类也无法正常工作。如果我转到其他内容页面,这些按钮工作,工具提示也可以。
如果这是在单独的页面中完成而不是在母版页中使用它可以正常工作。
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.
<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>
推荐答案
用asp.net控件替换你的锚标签和html按钮标签并再次检查。
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" />
这篇关于html按钮最初在母版页中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文