Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string productId = dataRow["ProductID"].ToString();
- DataTable attrTable = CatalogAccess.GetProductAttributesValues(productId);
- ((DropDownList)e.Item.FindControl("DropDownList1")).DataSource = attrTable;
- ((DropDownList)e.Item.FindControl("DropDownList1")).DataValueField = "AttributeValueID";
- ((DropDownList)e.Item.FindControl("DropDownList1")).DataTextField = "AttributeValue";
- ((DropDownList)e.Item.FindControl("DropDownList1")).DataBind();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement