I have a form that before it submits checks if an entry already exists in the database, and if it does then warns them that continuing will overwrite data with an Ok/cancel button. I was using MessageBox.show, but when I went to implement it on the server I found that it won't work. Since then, I've been trying to find another way to go about it, and have been attempting to use the Ajax Toolkit, but as far as I can tell they need to be run when the button is clicked.
I just want to do it in the middle of my code, and continue if the user hit ok and returns if they hit cancel. There has to be a simple way to do this. Any help would be appreciated!
This is what my code is now:
//run query
if (resultSet.Tables[0].Rows.Count != 0)
{
DialogResult result = MessageBox.Show("Overwrite", "Warning: Data already exists for this period and will be overwritten.", MessageBoxButtons.OKCancel, MessageBoxIc ...
Go to the complete details ...