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: Dec 11, 2019 4:48 PM
Views: 127
  1.  SqlDataSource1.SelectParameters.Clear();
  2.         SqlDataSource1.SelectCommand = "select * from perfumes where routelink='"+sku+"'";
  3.      
  4.         SqlDataSource1.DataBind();
  5.        
  6.         DataView dvsqllist = (DataView)SqlDataSource1.Select(DataSourceSelectArguments.Empty);
  7.         DataTable tablelist = dvsqllist.Table;
  8.         lblPerfume.Text = tablelist.Rows[0]["descricao"].ToString();