Hazel Mahmud

Hazel Mahmud

  • 1.8k
  • 299
  • 51.5k

dropdownlist value or text from label value

Jun 26 2021 5:10 PM


i have a label and a dropdownlist. The label is the value from the dropdowlist that i have inserted to database earlier in insert page. 

Now i want to edit the label value in update page. How do i make the display selecteditem.text and selectedvalue of the dropdownlist when i click edit button same as the label?

eg:  ddl1.SelectedItem.Text = lbl1.Text @ ddl1.SelectedValue = lbl.Text

Please help. TQ

Answers (2)