J
JJ
I have a control that can be placed on any page 1 or more times (like a web
part).
The control loads text from database tables. Its the first time I've done
this so I just need a pointer to solve a very simple problem:
How do I tell the control which record to get the text from in the database?
e.g.. I could use a querystring - but that could get lengthy if there are
several controls doing the same thing on the one page.
My thought was to perhaps tie the control ID to the database record - i.e.
have a row for 'controlID' in each record, so all I have to do on load would
be to search for that controls 'id'. Is that the correct approach here?
My concern would be if that control's id property is autogenerated, and if
it would change if, for example, the control was moved to another area of
the page?
Any pointers greatfully received!
JJ
part).
The control loads text from database tables. Its the first time I've done
this so I just need a pointer to solve a very simple problem:
How do I tell the control which record to get the text from in the database?
e.g.. I could use a querystring - but that could get lengthy if there are
several controls doing the same thing on the one page.
My thought was to perhaps tie the control ID to the database record - i.e.
have a row for 'controlID' in each record, so all I have to do on load would
be to search for that controls 'id'. Is that the correct approach here?
My concern would be if that control's id property is autogenerated, and if
it would change if, for example, the control was moved to another area of
the page?
Any pointers greatfully received!
JJ