You can directly do that inside the
Button Click
or something after you select both the
DropDowwnLists
.
protected void Button Click(object sender, EventArgs e)
{
RedirectToAPageRelatedToDropDownSelectedValues(ddl1.SelectedValue, dd2.SelectedValue);
}
private void RedirectToAPageRelatedToDropDownSelectedValues(DropDown1SelectedValue, DropDown2SelectedValue)
{
if(DropDown1SelectedValue.Equals("H1") && DropDown2SelectedValue.Equals("E"))
{
}
else if(DropDown1SelectedValue.Equals("H1") && DropDown2SelectedValue.Equals("E"))
{
}
}