6
Answers

How to conditionally display a Yes/No message box...

Hi guys,

I need to display a message box conditionally, I hope you can help me. The situation is this, I have a data entry application and on my Save button, it checks first if the record exists in the database. If it doesn't, it creates a new record. And if does, I would need to display a Yes/No dialog box asking the using if the record is to be updated or not. I should be able to capture the users selection so that I can perform the update or not. This basically left me not consider adding an attribute to my button and I cant use ajax toolkit or jquery. Please help me guys... Thanks...

Answers (6)

0
Photo of Safayat Zisan
NA 1.5k 237.3k 10y
Its not syntax error. The exception as I mentioned the post, is for the compact database which is not supported in that machine. There is no exception in those machine, which have installed visual studio.
0
Photo of Manoj Bhoir
NA 7.6k 294.2k 10y
Hi, as per your question i think you are getting Unhandled Exception due to some programming/coding error.
It might be possible that there is some error in your application or there is something which causes error and throwing exception in your application.
Without seeing any code I cannot blindly say what is the exact problem but I will suggest you, try to add try catch block for your code to handle exceptions. If you are getting this exception when you run your program then check your onLoad form event code or like that to identify the problem.

Best of luck.