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

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Aug 2009
Posts: 75
Reputation: coollife is an unknown quantity at this point 
Solved Threads: 0
coollife coollife is offline Offline
Junior Poster in Training

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

 
0
  #1
Aug 13th, 2009
Explanation of this statement
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 45
Reputation: bcasp is an unknown quantity at this point 
Solved Threads: 10
bcasp bcasp is offline Offline
Light Poster

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

 
0
  #2
Aug 14th, 2009
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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC