Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: ASP
Posted by: Mario Lopes
Added: Aug 23, 2018 2:34 PM
Views: 4
Tags: listview
Como apanhar um campo de uma ListView
  1.  LinkButton btn = sender as LinkButton;
  2.             //Get the listviewitem from button
  3.             ListViewItem item = (ListViewItem)(sender as Control).NamingContainer;
  4.  
  5.             //Find the label control
  6.             Label lblskuLabel = (Label)item.FindControl("skuLabel");
  7.             //get the value
  8.             string skuLabelvalue = lblskuLabel.Text;