J
J055
Hi
I have a DropDownList with AutoPostBack = true. When this occurs I need to
load an ObjectDataSource control with the previous value. This is because
the DropDownList populates another list but should not load new data until a
Submit button is clicked.
I'd like to change the DropDownList value in the InputParameters collection
in the ObjectDataSource Selecting event.
e.g.
protected void ods_Selecting(object sender,
ObjectDataSourceSelectingEventArgs e)
{
// if DropDownList selected index changed then
e.InputParameters.Remove(key);
e.InputParameters.Insert(0, key, oldvalue);
}
what's the best/cleanest way to achieve this?
Thanks
Andrew
I have a DropDownList with AutoPostBack = true. When this occurs I need to
load an ObjectDataSource control with the previous value. This is because
the DropDownList populates another list but should not load new data until a
Submit button is clicked.
I'd like to change the DropDownList value in the InputParameters collection
in the ObjectDataSource Selecting event.
e.g.
protected void ods_Selecting(object sender,
ObjectDataSourceSelectingEventArgs e)
{
// if DropDownList selected index changed then
e.InputParameters.Remove(key);
e.InputParameters.Insert(0, key, oldvalue);
}
what's the best/cleanest way to achieve this?
Thanks
Andrew