473,401 Members | 2,125 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

Getting a control linked to a database record - beginners question

JJ
OK - I asked this earlier but thought I'd solved it. Clearly not.

I have a control that I need to display text from an sql database. The
control is being used as a web part so can be placed on a page more than
once.

I am trying to work out how I'd get each instance of the control to load its
corresponding database record to display the text?

I would normally do this sort of thing via a querystring, but in this case
its not going to be practical.

Could someone give me some hints on how I could get the control to know
which database record it needs without using querystrings?

What I think I need is a unique property value (unique on all pages) for
each control, that I can store in the database record.....??

Help!!

JJ
Apr 12 '07 #1
2 1106
JJ
Perhaps if I could make each control id unique throughout the entire site, I
could use that to look up a specific row ?
"JJ" <ab*@xyz.comwrote in message
news:e2**************@TK2MSFTNGP06.phx.gbl...
OK - I asked this earlier but thought I'd solved it. Clearly not.

I have a control that I need to display text from an sql database. The
control is being used as a web part so can be placed on a page more than
once.

I am trying to work out how I'd get each instance of the control to load
its corresponding database record to display the text?

I would normally do this sort of thing via a querystring, but in this case
its not going to be practical.

Could someone give me some hints on how I could get the control to know
which database record it needs without using querystrings?

What I think I need is a unique property value (unique on all pages) for
each control, that I can store in the database record.....??

Help!!

JJ

Apr 12 '07 #2
JJ
I guess the url combined with the control id would be a unique value. My
concern then is if I allow a user to move the control (web part) to another
part of the page, I assume the control id would change. I'd therefore have
to work some way out of updating this in the record.

Anyone have any suggestions?

"JJ" <ab*@xyz.comwrote in message
news:uy**************@TK2MSFTNGP02.phx.gbl...
Perhaps if I could make each control id unique throughout the entire site,
I could use that to look up a specific row ?
"JJ" <ab*@xyz.comwrote in message
news:e2**************@TK2MSFTNGP06.phx.gbl...
>OK - I asked this earlier but thought I'd solved it. Clearly not.

I have a control that I need to display text from an sql database. The
control is being used as a web part so can be placed on a page more than
once.

I am trying to work out how I'd get each instance of the control to load
its corresponding database record to display the text?

I would normally do this sort of thing via a querystring, but in this
case its not going to be practical.

Could someone give me some hints on how I could get the control to know
which database record it needs without using querystrings?

What I think I need is a unique property value (unique on all pages) for
each control, that I can store in the database record.....??

Help!!

JJ


Apr 13 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Bruce Rusk | last post by:
I'm using Stephen Lebans' RTF2 control in a report, and have discovered what may be a slight bug in it. I have a lot of non-Western language (Chinese) text in my RTF field, and such records get...
1
by: Julia | last post by:
Hello there. I have a question somewhat related to this topic, and I don't know where else to go. I hope somebody can help. I've created a database in access, that I'd like to share with less...
2
by: dBNovice | last post by:
Hello All, I could really use some serious help with this one... I have a form that has a tab control with 3 pages. Page(0) is Tasks, Page(1) is SubTasks, and Page(2) is Elements. Page (1) is a...
10
by: Jim Devenish | last post by:
I have a split front end/back end system. However I create a number of local tables to carry out certain operations. There is a tendency for the front end to bloat so I have set 'compact on...
3
by: dickylau | last post by:
I got a question about the singly linked list for (1) inserting the new record before the users type the number of the position & (2) removing the name of the record which users type the name. ...
1
by: sparks | last post by:
I have a form/table with an autoid it is linked to a table/form with and ID as a 1 to many. Under this form/table I need another table with many records for each on of the many in the previous...
2
by: JJ | last post by:
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...
1
Stang02GT
by: Stang02GT | last post by:
This is a little difficult to explain so bear with me, and if anyone has any questions i will be happy to clarify for you I have a database linked into my access database. This linked database is...
7
by: robert.waters | last post by:
I have an Access database frontend linked via ODBC to a large (gigabytes) mysql database. I need to view a large amount of data in a a textbox (variable up to 300K), but I receive a 'there isnt...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.