我有 3 个下拉列表和 1 个按钮..,当页面加载时,它会转到最后一个其他部分...如果我选择任何一个下拉列表并单击 btn..即使我在数据库中有数据,它也会显示为空...我想我在选定的项目部分犯了一些错误……你能为此提出一些想法吗……
if (employee_name_ddl.SelectedItem.Text != "Select" & employee_paricularpro_ddl.SelectedItem.Text == "Select" & employee_status_ddl.SelectedItem.Text == "All Status")
{
............
}
else if (employee_name_ddl.SelectedItem.Text == "Select" & employee_paricularpro_ddl.SelectedItem.Text != "Select" & employee_status_ddl.SelectedItem.Text == "All Status")
{
............................
}
else if (employee_name_ddl.SelectedItem.Text == "Select" & employee_paricularpro_ddl.SelectedItem.Text == "Select" & employee_status_ddl.SelectedItem.Text != "All Status")
{
............................
}
else if (employee_name_ddl.SelectedItem.Text != "Select" & employee_paricularpro_ddl.SelectedItem.Text != "Select" & employee_status_ddl.SelectedItem.Text == "All Status")
{
...............................
}
else if (employee_name_ddl.SelectedItem.Text != "Select" & employee_paricularpro_ddl.SelectedItem.Text == "Select" & employee_status_ddl.SelectedItem.Text != "All Status")
{
........................
}
else if (employee_name_ddl.SelectedItem.Text == "Select" & employee_paricularpro_ddl.SelectedItem.Text != "Select" & employee_status_ddl.SelectedItem.Text != "All Status")
{
...................
}
else if (employee_name_ddl.SelectedItem.Text != "Select" & employee_paricularpro_ddl.SelectedItem.Text != "Select" & employee_status_ddl.SelectedItem.Text != "All Status")
{
.........................
}
else
{
....................
}