Q: How to get a control's UniqueID to save a control's vars into a DB?

  • Thread starter Thread starter Sky
  • Start date Start date
S

Sky

Hello:

HUGE question that has blocked me for a while now:

I have (or rather, hope to have!) a usercontrol called Module_PhoneList that
is injected in a Panel ,
which can show up in different Pages. (Basically a portal).

The question is as follows:
How can I create a unique Session key/word to distinguish between

PhoneList in Panel 3 on Page 1, and
PhoneList control in Panel 2 on page 2?

In both cases, if the code was created dynamically,
the ID's will be the same for all instances (too inclusive), whereas
the UniqueID will change depending on where it was placed on the page(too
restrictive -- because if I give the user a means to MOVE the control from
position 3 on the panel 1, to the position 1 of panel 2, the UniqueID will
no longer be the same, right?)



Anyway -- probably a dumb question, but frankly, really important to me ;-)
Havn't figured out a way to save the vars for each 'Module' in first
Session, and then back to a Database on Session_End.....

Any and all suggestions for doing this kind of var-saving elegantly, would
be greatly appreciated!

Sky
 
I am working on a similar issue. I have been trying to ascertain if the control's uniqueID is statically defined at design time. Your question implies that it can change at run time. It's my understanding that the uniqueID contains its container's name and possibly an iterator for multiple instances

Does your app allow the user to move controls around at run time, or design time?
 
Back
Top