Help, I’m trying to implement a confirm button on an page. I have it attached to a asp:button control. In the button1 click event I call the CreateConfirmBox subroutine. The Box comes up with the yes/No option ok. My problem or question is: How do I determine which button was pressed? Below are the 2 routines I’m using.<BR><BR><BR>Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click<BR> CreateConfirmBox(Button1, "Do you want to close?")<BR>End Sub<BR><BR><BR>Public Shared Sub CreateConfirmBox(ByRef btn As WebControls.Button, _<BR> ByVal strMessage As String)<BR> btn.Attributes.Add("onclick", "return confirm(&#039;" & strMessage & "&#039;);")<BR> <BR> End Sub<BR><BR>Any help will be appreciated,<BR>Logger<BR>