static string GetDataSourceId (IDynamicDataSource dataSource) { Control c = dataSource as Control; if (c == null) return String.Empty; return c.ID; }