How to Get GUID of Current Page's Object for use in User Control
I have created a custom module named "Courses". I have some pages (View, Edit, etc.) that will have functionality contained within User Controls. I tried the following structure, but it did not work because I have not been able to get ViewState enabled within the User Controls in order to retain values upon Postback.
Courses Widget (Single Item)
Widget Template (Course - Single)
Declaration of User Control
Therefore, I am resorting to the following structure:
Custom Widget (pointing to desired user control)
This approach does seem to retain values upon Postback with ViewState enabled. However, I cannot seem to find a way to programmatically get the GUID of the current record using this approach. In other words, I need my User Control to some how be able to get the GUID associated with the course for the URL of the Edit Page (site/.../test-course-5).
Any help would be appreciated. Please let me know if there is any additional information or explanation needed.
I have responded in your support thread.Regards,