Just new in ASP.NET Tech. Is there anyone out there who can help me how to in create a modal message box (in Windows Form style) with Yes or No buttons with VB.NET?
Thanks!
virajelizHi,
If you are aiming to have one for a Button Click, the following code would do. Put the code in the Page_load event.
Button1.Attributes.Add("onclick", "confirm('Are you sure you...?');")
Where Button1 is the ID of the Button control.
Hope it helps.
Thanks.
Harish,
The thing is that, after the button is clicked, there are things to verify, and if the verification returns true, then only in this case the message box to confirm is called in order to pass a boolean value to a variable, which the code you sent can't do.
Thanks!
virajeliz
0 comments:
Post a Comment