ModalPopupExtender question
I have a standard ModalPopupExtender, which works fine for one specifically set template. However, I need that template to chage based on teh requierements. In my example, I need to delete a record from a data grid. However, if the record has certain elements/children, it is not supposed to be deleted. Just a warning message should popup saying something like 'You can not delete record because this and that...'. with just 'Ok' button (something like Javascript Alert) But if record doesn't have any children/components, I should get a confirmation box with 'Ok' and 'No, Where I would choose between deleting record and not. What is the best way way to achieve that functionality? I tried a lot of different ways but failed. Can I somehow dynamicaly choose between two different panels? The problem is that when I realize in DynamicServiceMethod that I have children for my rows I can not change anything or access anything out of that method. What is the best way to approach that scenario?
|