By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,161 Members | 2,002 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,161 IT Pros & Developers. It's quick & easy.

Does data have to be bound to something to display it?

P: n/a
I've been working on a few userControls that display data. I've been using
datalists and repeater controls for this. I bind the data to the datalist or
repeater, then display it.

However, sometimes I just need to pull up one record. Is it incorrect to use
a datalist or repeater to just show one record? Is there a different control
I should be binding data to when only showing one record?

-Darrel
Nov 18 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
it will work, just return the one record.
It's probably a bit more overhead to use that type of control but in reality
it should matter little.

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"darrel" <no*****@hotmail.com> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
I've been working on a few userControls that display data. I've been using
datalists and repeater controls for this. I bind the data to the datalist or repeater, then display it.

However, sometimes I just need to pull up one record. Is it incorrect to use a datalist or repeater to just show one record? Is there a different control I should be binding data to when only showing one record?

-Darrel

Nov 18 '05 #2

P: n/a
> it will work, just return the one record.
It's probably a bit more overhead to use that type of control but in reality it should matter little.


Thanks Curt. In the name of 'perfect code' what would you recommend to
reduce the overhead if not using something like a repeater control?

Admittedly, I overthink these sometimes. ;o)

-Darrel
Nov 18 '05 #3

P: n/a
to just show one record? labels

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"darrel" <no*****@hotmail.com> wrote in message
news:uw*************@TK2MSFTNGP12.phx.gbl...
it will work, just return the one record.
It's probably a bit more overhead to use that type of control but in

reality
it should matter little.


Thanks Curt. In the name of 'perfect code' what would you recommend to
reduce the overhead if not using something like a repeater control?

Admittedly, I overthink these sometimes. ;o)

-Darrel

Nov 18 '05 #4

P: n/a
> to just show one record? labels

Ah! That makes sense!

Thanks!

-Darrel
Nov 18 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.