I m having two buttons and one button is hidden. Now when I click the visible button I need to do two things
1.Open Iframe。
2. 象征性地把第2次布顿(黑色)点击。
当第二个纽克被点击时,我需要在我作为<条码>提到的“IFrame”顶上显示信息。
现在,我得以开放了Francorame,但我无法自动点击Hiddenhton。
这是我说的:
<script type="text/javascript">
$(document).ready(function(){
$("#<%=Button1.ClientID%>").click(function(event){
$( #<%=TextBox1.ClientID%> ).change(function () {
$( #various3 ).attr( href , $(this).val());
});
});
function showStickySuccessToast() {
$().toastmessage( showToast , {
text: Finished Processing! ,
sticky: false,
position: middle-center ,
type: success ,
closeText: ,
close: function () {
}
});
}
})
</script>
我的两个纽州是:
<a id="various3" href="#"><asp:Button ID="Button1"
runat="server" Text="Button" OnClientClick="Button2_Click"/></a>
<asp:Button ID="Button2"
runat="server" Text="Button" Visible="False" OnClick="Button2_Click"/>
在纽特2-Click活动中:
Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click
System.Web.UI.ScriptManager.RegisterClientScriptBlock(Page, GetType(Page), "Script", "showStickySuccessToast();", True)
End Sub