0
That's a nice alternative... But I don't think I can apply that on our application right now since the requirements didnt allow a lot of development time. I can propose that on our next version maybe... Thanks for your suggestion...
0
Why like this.. First give users a "Search" facility for item. If found ask to update (Change button text to "Update") or else create a new one (Change button text to "Add New"). Something like this :)
0
Hi,
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.
0
query resolved?
0
if (MessageBox.Show("Do You Wish To continue", "Confirmation", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
{
MessageBo.Show("yes pressed");
}
0
Have you looked at the articles in this web site? Especially the ones listed under "Our recommended articles" at the right side of this window?