M
Mike
Ok, here is my story. I took over a web site that is using the asp.net wizard. This wizard has buttons within it, now, on one of the steps in the wizard I have a drop down. Depending if 'Delete' is selected in the drop down, I need to show a message box to ask the user 'you sure you want to delete?" if they click 'OK' it deletes, if they click cancel it does nothing.
So within the button click event, how can I show an confirmation box only if 'Delete' is selected in the drop down?
so I need something like this
if (dd.selecteditem.text == "delete")
{
I need to show a confirmation box;
}
then call my delete method only if 'OK' is clicked in the confirmation box, if cancel then nothing happens.
any suggestions on how this can be done?
So within the button click event, how can I show an confirmation box only if 'Delete' is selected in the drop down?
so I need something like this
if (dd.selecteditem.text == "delete")
{
I need to show a confirmation box;
}
then call my delete method only if 'OK' is clicked in the confirmation box, if cancel then nothing happens.
any suggestions on how this can be done?