p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   ASP.NET 3.5 Basics (http://p2p.wrox.com/forumdisplay.php?f=351)
-   -   How to bind data from a db to a label in c# 3.5 (http://p2p.wrox.com/showthread.php?t=73016)

bex March 4th, 2009 02:47 PM

I need to display plain text

i have 6 labels in different positions that displaying the column that is binded too, like label1.text=column1.

that is why i have the 6 columns and 1 row cos the table is not gonna grow.
i don't know if is possible to do it the other way round, 1 column and 6 rows.

any way i have it up and running by using labels,

thank you guys

gbianchi March 4th, 2009 03:18 PM

If your table will grow, the code we provide to you have to change. And your better solution is to use a repeater bounded to a datasource. You can't bind the same label to several rows!

bex March 4th, 2009 03:34 PM

i have 6 labels in the page that are positiont 2 on the top off the page 2 in the footer 1 left 1 right, can the repeater display text in this places??

the table will not grow

gbianchi March 4th, 2009 03:37 PM

Sorry. Didn't see the NOT.. then it's ok this way.

All times are GMT -4. The time now is 04:12 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.