Show modal popup from code

I have a drop down list

in code, I have this function

protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) { /////// } 

now I want to show a modal popup when a specific text is selected from a drop-down list from this function

+4
source share
1 answer
 if(DropDownList1.SelectedItem.Text.Equals("Some Text")) { ModalPopupExtender1.Show(); } 
+8
source

All Articles