日期:2014-05-18  浏览次数:20492 次

UserControl中事件不触发?
这个Button在UserControl中( <input   id= "btnPass "   type= "button "   onclick= "Javascript:return   confirm( "确定发布信息? "); "   runat= "server "   value= "发布 "〉)confirm返回true仍不触发服务器端事件,请教。谢谢!

------解决方案--------------------
用服务器控件试试吧.
<asp:Button OnClientClick= "return confirm( "xxxx ") " Text= "发布 " id= "btnPass " runat= "server "> </asp:Button>