Login or Sign up Help | Site Map
Connecting Tech Pros Worldwide

Gridview

Question posted by: mirainc (Member) on July 25th, 2008 08:31 AM
Is it possible to assign a data value from database onto a label..?
Usually we get to see the values in a gridview BUT i want to see the value on a label..
How can I achieve this?
Would you like to answer this question?
Sign up for a free account, or Login (if you're already a member).
r035198x's Avatar
r035198x
Administrator
10,619 Posts
July 25th, 2008
08:54 AM
#2

Re: Gridview
Will
Code: ( text )
  1. <asp:Label id="label1" runat="server"
  2.      Text='<%# Container.DataItem("ColumnName") %>'>

do?

Reply
insertAlias's Avatar
insertAlias
Moderator
1,038 Posts
July 25th, 2008
02:01 PM
#3

Re: Gridview
Read these two articles:
http://bytes.com/forum/thread635615.html
http://bytes.com/forum/thread817960.html
And if you still can't figure it out, reply again.

Reply
Reply
Not the answer you were looking for? Post your question . . .
182,371 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Top .NET Forum Contributors