Advertisement
Guest User

Untitled

a guest
May 27th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.49 KB | None | 0 0
  1. string productId = dataRow["ProductID"].ToString();
  2.             DataTable attrTable = CatalogAccess.GetProductAttributesValues(productId);
  3.             ((DropDownList)e.Item.FindControl("DropDownList1")).DataSource = attrTable;
  4.             ((DropDownList)e.Item.FindControl("DropDownList1")).DataValueField = "AttributeValueID";
  5.             ((DropDownList)e.Item.FindControl("DropDownList1")).DataTextField = "AttributeValue";
  6.             ((DropDownList)e.Item.FindControl("DropDownList1")).DataBind();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement