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

Sam HobbsRank #107 · 20.5K reputationPosted Jun 15, 2011, 12:32 PM EDT
Mayur GujrathiRank #666 · 3.6K reputationPosted Jun 15, 2011, 8:39 PM EDT
{
MessageBo.Show("yes pressed");
}
Suthish NairRank #92 · 22.8K reputationPosted Jun 17, 2011, 2:49 AM EDT
Guest User16 reputationPosted Jun 17, 2011, 3:15 AM EDT
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 NairRank #92 · 22.8K reputationPosted Jun 17, 2011, 3:49 AM EDT
Guest User16 reputationPosted Jun 17, 2011, 3:55 AM EDT