Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Q: How to get Unique ID's for a control, to save its vars in Session/DB?

Thread Tools

Q: How to get Unique ID's for a control, to save its vars in Session/DB?

Posts: n/a

HUGE question that has blocked me for a while now:

I 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!


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Use self.vars in class.method(parameters, self.vars) caccolangrifata Python 18 07-22-2011 10:22 PM
Its a bird, its a plane, its.. um, an Attribute based System? thunk Ruby 0 04-01-2010 10:25 PM
Its a bird, its a plane, no ummm, its a Ruide thunk Ruby 1 03-30-2010 11:10 AM
How do I declare global vars or class vars in Python ? Linuxguy123 Python 7 02-20-2009 06:45 PM
app vars and cache vars Jon ASP .Net 3 12-14-2004 08:52 PM