Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

show modal popup from code behind

i have a dropdownlist

in codebehind,i have this function

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

now i want to show modal popup when a particular text is selected from the dropdownlist from this function

like image 292
Mishigen Avatar asked Mar 01 '23 01:03

Mishigen


1 Answers

if(DropDownList1.SelectedItem.Text.Equals("Some Text"))
{
     ModalPopupExtender1.Show();
}
like image 81
Matthew Jones Avatar answered Mar 11 '23 09:03

Matthew Jones