Hi all
ok I have a gridview that gets its datasource from a class using subsonic method
RetrieveAllActive()
The gridview displayed now depends on a selection in a drop down list generated dynamically.
The datasource calls used to look like this
if (drp_Tables.SelectedValue == "Asset")
{
gv_Display_The_Data.DataSource = Asset.RetrieveAllActive();
}
if (drp_Tables.SelectedValue == "AssetType")
{
gv_Display_The_Data.DataSource = AssetType.RetrieveAllActive();
}
I now need to call the datasource using the selected value in drp_Tables something like this
gv_Display_The_Data.DataSource = drp_Tables.SelectedValue.RetrieveAllActive();
Is there anyway to do this ? how do I set the namespace to be called to the value stored in drp_Tables.SelectedValue.
Any help would be appreciated
Richie