G
Guest
Hi all,
I'm running an asp.net website that allows its users to log events, say
social gathewrings (with event date, time, address, descrption, etc) and
allows people to post comments on each posting. I use a datagrid with 2 cells
to display all recent events chronologically and use nested databinding to
display all related comments underneeth the events. Works great.
Now, I'm trying to make it so that I can display the most recent event on
the homepage. I ended up trying to replciate the appearence of one instance
of a datagriditem by having a table with a bunch of labels that I set
individually. I want to reuse this logic now to also show the most recent
event posted by the logged in user. So, I'm thinking user control or server
control. I'm tempted to go for a server control just to gain experience
making one. If I do go for a server control, would I encorperate databinding
into it? Does that make sense when you're only pulling data (multiple fields)
from a single datarow? What's the alternative? Just manually setting label
values in a load event, right?
Any thoughts at all would be very welcome. Thanks...
-Ben
I'm running an asp.net website that allows its users to log events, say
social gathewrings (with event date, time, address, descrption, etc) and
allows people to post comments on each posting. I use a datagrid with 2 cells
to display all recent events chronologically and use nested databinding to
display all related comments underneeth the events. Works great.
Now, I'm trying to make it so that I can display the most recent event on
the homepage. I ended up trying to replciate the appearence of one instance
of a datagriditem by having a table with a bunch of labels that I set
individually. I want to reuse this logic now to also show the most recent
event posted by the logged in user. So, I'm thinking user control or server
control. I'm tempted to go for a server control just to gain experience
making one. If I do go for a server control, would I encorperate databinding
into it? Does that make sense when you're only pulling data (multiple fields)
from a single datarow? What's the alternative? Just manually setting label
values in a load event, right?
Any thoughts at all would be very welcome. Thanks...
-Ben