G
Guest
I have two DropDownList controls in a web form and I need to test which
control has changed without wrapping it in a SelectedIndexChange Event. How
do I go about this issue? I have tried the following which works sort of but
the first time I change the selection in one of the DropDownList controls it
returns a SelectedValue of null.
public string ctrlSelection
{
get
{
if(SubList.SelectedValue == null || SubList.SelectedValue == "<-Sub
Menu->")
{
return MainMenuLST.SelectedValue;
}
else
{
return SubList.SelectedValue;
}
}
}
control has changed without wrapping it in a SelectedIndexChange Event. How
do I go about this issue? I have tried the following which works sort of but
the first time I change the selection in one of the DropDownList controls it
returns a SelectedValue of null.
public string ctrlSelection
{
get
{
if(SubList.SelectedValue == null || SubList.SelectedValue == "<-Sub
Menu->")
{
return MainMenuLST.SelectedValue;
}
else
{
return SubList.SelectedValue;
}
}
}