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...
Loading
Guest UserPosted Jun 17, 2011, 7:55 AM
Suthish NairPosted Jun 17, 2011, 7:49 AM
Guest UserPosted Jun 17, 2011, 7:15 AM
Thanks for the comments... The requirement was quite a rush so I just did a work around. I used two buttons alternating their visibility on every post back depending on the result of the checking for the records existence... If the record doesn't exist, the Add button is visible. Otherwise, the update button is visible. The update is attached with attribute that calls on a client side script that asks the user for confirmation.
Suthish NairPosted Jun 17, 2011, 6:49 AM
Mayur GujrathiPosted Jun 16, 2011, 12:39 AM
{
MessageBo.Show("yes pressed");
}
Sam HobbsPosted Jun 15, 2011, 4:32 PM