I have this code that display a message when a button is click, but i am having more that one button on the form, how do i control the message base on the different button click.
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim message As String = "Do you want to Submit?"
Dim sb As New System.Text.StringBuilder() sb.Append("return confirm('")
sb.Append(message) sb.Append("');")
ClientScript.RegisterOnSubmitStatement(Me.GetType(), "alert", sb.ToString())
End Sub