J
Jonathan Miller
I am dynamically generating some of the menuitems in a context menu. So far everything has worked well. I can add the menu items, I can even add a click event handler. However, this presents a new problem. Since all of the items are generated on the fly, they all point to the same handler code. How do I tell what menuitem was clicked on? I understand I can use the sender object to read the name, but I really need a way to associate a database primary key with each menu item. Any ideas on this?