943,757 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 2987
  • ASP.NET RSS
Aug 13th, 2009
0

Text='<%# DataBinder.Eval(Container.DataItem,"Prod_Id") %>'

Expand Post »
Explanation of this statement
Similar Threads
Reputation Points: 6
Solved Threads: 0
Junior Poster in Training
coollife is offline Offline
85 posts
since Aug 2009
Aug 14th, 2009
0

Re: Text='<%# DataBinder.Eval(Container.DataItem,"Prod_Id") %>'

In your code behind, you would bind a DataSet or some other object to a control on your form. In your markup, the statement you gave then uses whatever object you bound to your control to look up the value with a key of Prod_Id.

So, if you bound a DataSet to a ListView and had a template set up for your listview, your statement would show the value in the Prod_Id column as the text for whatever element the statement is used in.
Reputation Points: 23
Solved Threads: 10
Light Poster
bcasp is offline Offline
45 posts
since Apr 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: Edit Data in GridView
Next Thread in ASP.NET Forum Timeline: Display a "in progress" message from C# code behind ASP.net





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC