I have the following situation to address:
A user wants to access a data base record using its unique purchase order ID. If the user mistypes the ID and is now looking for a non-existant record the data base has to return an alert message ("POID not found") to the client.
My first attempt was to use msgbox() but I learned quickly that this is not a good way to go (the client receives a "yellow error screen"). After perusing the internet, I found three different ways of sending a Java script from the server to the client to display the alert message. Basically they use the commands: Response.Write(msg), Page.Controls.Add(lbl), or P.ClientScript.RegisterStartupScript(p.GetType,"", str).
I implemented the Response.Write approach (the simplist code) and found it works OK except that when the alert is displayed on the client's screen the main screen is blanked out. Upon the dismissal of the alert, the main screen is restored but it is somewhat distorted because some of the fonts have become larger.
My question is this: is there a good way to accomplish what I want? Should I use one of the other two methods or is there yet a better way? Any comments along this line would be appreciated.
