overtech06 wrote:
one Generic method...
Well you could use GetType() then a switch ...
protected void inaBind(Object a, Object c)
{
switch (a.GetType().Name)
{
case "GridView":
(a as GridView).DataSource = c as DataSet;
break;
case "Repeater":
(a as Repeater).DataSource = c as DataSet;
break;
}
}