Hello,
I am converting an old VB 6.0 application into a web based app with VB.NET and ASP.NET. The problem that I am having is that the old application made extensive use of popup boxes and message boxes that would ask the user a couple questions and then pass the values back to the main form and close the popup box. I have not been able to find a good way to do this using web forms. Does anyone have any suggestions on this?
Thanks
Torrey
![]() |
1 |
![]() |
You will have to use vbscript or javascript to display message boxes on the client side. You can use something like this:
Button1.Attributes.Add("onClick", "alert('Hello');")
Button2.Attributes.Add("onClick", "confirm('Are you sure?');")
If you don't want the form to postback after the message box appears use an HTML button.
You will have to add extra functionality if you want to pass the result of the confirmation to the server side.
hope this helps,
sivilian
My Weblogs
![]() |
1 |
![]() |