I am developing an ASP.NET application. I have a form that I designed using the WEB controls. After collection information from the user, like Social Security number and name, I add a record to a database. The record is added in the VB code for the onclick. If there is an error with the database, or if a duplicate record is going to be added, I want to display a popup menu on the client side. The MessageBox.show is a server class (as I understand it) and would not work for the client side. How do you put up a popup window from the VB class generated from the page class?
With a thin client application running in a browser, you're much better off using the data validation controls to inform the user of the problem after the post back. That's exactly what these controls were designed to help you do. For more information on these controls, search for "Introduction to Validating User Input in Web Forms" on the MSDN.
Dig Deeper on VB 6 to VB .NET Migration
Related Q&A from John Robbins
What is a JAD session? This term is referred to often in job postings and seems like some kind of brainstorm you carry out with a client to define IT... Continue Reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.