for confirm box
Public Shared Sub Confirm(ByRef btn As WebControls.Button, ByVal strMessage
As String)
btn.Attributes.Add("onclick", "return confirm('" & strMessage & "');")
End Sub
write this code in a static class called util
in webform load you have to map the particular event to this confirm box
with the following systax
Me.button.Attributes.Add("onclick", "return confirm('Your message goes
here');")
this above code should work, further quires feel free to contact
(E-Mail Removed)
"sonu" wrote:
> How can we use alert and confirm method in asp.net application.
>
> i am working with application where i want to use confirm box before
> going for any operation. and same for alert box
>
> Sonu
>
>