按钮上的问题,在同意的地方持有人 [英] problem in button click in conent palce holder

查看:67
本文介绍了按钮上的问题,在同意的地方持有人的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好
我有母版页和
带有名称索引的母版页的网页

索引中添加按钮时

hi everyone
i have master page and
web page using master page with name index
when add button in index in

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

 
    <asp:Button ID="Button3" runat="server" onclick="Button3_Click" Text="Button" />



click事件无法正常运行,谢谢您的帮助.



click event is not work thanks for any help

推荐答案

如果将其添加到与事件代码在后面代码中相同的aspx中(您不是很明显,如果您要将按钮添加到派生页面上,并且该事件在母版页中将不起作用),则没有理由不起作用.它是否执行回发并且不调用该事件?我们需要更多信息.
If this is being added to the same aspx as the event code is in the code behind ( you''re not clear, if you''re adding the button to your derived page, and the event in your master page, which won''t work ), then there is no reason for this not to work. Does it do a postback at all and the event is not called ? We need more info.


这篇关于按钮上的问题,在同意的地方持有人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆