I am trying to add an attribute to a dropdownlist control to store a value returned for the database. This value is need to get a code once a selection is made on the dropdownlist;
I have tried the following:
ddlStatus.DataT extField = dsValues.Tables (0).Columns("De scription").ToS tring()
ddlStatus.DataV alueField = dsValues.Tables (0).Columns("Ca tegoryCode").To String()
ddlStatus.Attri butes.Add("SysC ode", dsValues.Tables (0).Columns("Sy stemCode").ToSt ring())
ddlStatus.DataB ind()
but the attribute is not bound to the control
I have tried the following:
ddlStatus.DataT extField = dsValues.Tables (0).Columns("De scription").ToS tring()
ddlStatus.DataV alueField = dsValues.Tables (0).Columns("Ca tegoryCode").To String()
ddlStatus.Attri butes.Add("SysC ode", dsValues.Tables (0).Columns("Sy stemCode").ToSt ring())
ddlStatus.DataB ind()
but the attribute is not bound to the control
Comment