User475983607 posted
I want label value to be displayed as selected value for dropdown in Update
JafjitSingh, that's is not what the code - you wrote - is doing. Your code is trying to convert a label to a dropdown.
Use the
selected value property of the dropdown list to set the selected value. This syntax assumes you have a ddl_NMSMonths0 dropdown defined in the markup.
ddl_NMSMonths0.SelectedValue = ((Label)row.FindControl("lblNMSMonths")).Text;
I'm not sure how to help you.... Keep in mind that you regularly ask the same questions and make the same mistakes. Maybe you should slow down and do a bit of learning.