Confirmable MenuItem

G

Guest

Is it possible for <asp:Menu> to have confirmable menuitem?
E.g. with javascript:confirm method generated

You can not access MenuItem.Attributes.Add("onclick","return confirm('Do You
really want to..')
How to get this behavior as simple as possible?

Regards,

Marcin
 
G

Guest

TIME OUT!

ClientScript.RegisterStartupScript(this.GetType(), "mnZal",
"document.getElementById('mnMakGrbn3').onclick=function() {return
confirm('Czy chcesz za³o¿yæ grzbiety?')};", true);
 

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
473,773
Messages
2,569,594
Members
45,120
Latest member
ShelaWalli
Top