I have two sublayouts: Grid-1-2 and Grid-2-1.
The two sublayouts are sharing a single ASCX file (not a good sitecore practice but i need it this way).
The problem is that in the ASCX codebehind, i want to see if the current selected grid is Grid-1-2 or Grid-2-1 ?!
I have tried using both Datasource and RenderingId techniques but to no effect.
EDIT
I was wondering if i can get the "Parameters" field from "Data" section of the sublayout. This would do the trick.
All suggestions are welcomed. Please Help !!