10 Jul 2008
16 Aug 2010
Link to this post
Hi all from Canada.
I built a user control which I am inserting into a ~/Sitefinity/Admin/ControlTemplates/MyControl/ControlPanelEdit.ascx file. The user control is supposed to allow me to tie into our database tables and whatnot. I want to display a fancy interface and provide some complex interaction for the admin. I'll store and fetch the results myself. Nothing too much to do with Sitefinity, I'll do the work, I just need to be stuck onto the admin page. That's all well and good and works fine, really, except that I have one issue and I cannot figure it out for the life of me. I cannot seem to get the id of the module instance currently being edited!!
I see in the GCMetaData table all the values stored for my module instance, and that they are all keyed by a GUID in the ContentID field. So I insert my ascx into the admin container and everything works well, except that I cannot figure out how to get that GUID for the module instance currently being edited. I want to use that value as a key into my own tables.
I am sure I am missing something basic here. If this rings a bell with anyone I would surely appreciate the helping hand.