ModalPopupExtender question

Joined
Sep 23, 2008
Messages
1
Reaction score
0
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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top