Avatar of stefan1977
stefan1977

asked on 

reference sqldatasource by name

How do I reference a sqldatasource by variable in c#, e.g.

Normal reference would be something like

sqldatasource1.Select.....

but i need something like

String datasourceID="sqldatasource1";

and then use this variable to reference the correct datasource on the page and then perform the select command.

Regards

PG
C#

Avatar of undefined
Last Comment
stefan1977

8/22/2022 - Mon