that says Accept or Decline. I want to close the page
if user click Decline Button
Sub Button2_Click(sender As Object, e As EventArgs)----
me.close()
End Sub
<asp:Button id="Button2" onclick="Button2_Click" runat="server" Text="Decline"></asp:Button>Why it does not work. me.close thinks the button not the page itself.
Any Solutions??I'm assuming you have 2 buttons, btnAccept and btnDecline. You can close the window with Javascript. In your PageLoad sub, add this line:
btnDecline.Attributes.Add( "onClick", "window.close();" )
It really worked.
Thanks.
It really worked
Thanks.
0 comments:
Post a Comment