A
Abubakar
hi all,
I have the following code:
class dbase {
public SqlDataSource getdatasource()
{
SqlDataSource sq = new SqlDataSource();
sq.ConnectionString = m_connectionstring;
//sq.SelectCommand = "select village_name, school_name from gps";
return sq;
}
}
and some other function that has the following code:
SqlDataSource ds = new dbase().getdatasource();
ds.SelectCommand = mainquery;
Repeater1.DataSource = ds;
Repeater1.DataBind();
After the DataBind, is any kind of Close function needed, or any other code
that should be written to dispose off things?
Thanks,
...ab
I have the following code:
class dbase {
public SqlDataSource getdatasource()
{
SqlDataSource sq = new SqlDataSource();
sq.ConnectionString = m_connectionstring;
//sq.SelectCommand = "select village_name, school_name from gps";
return sq;
}
}
and some other function that has the following code:
SqlDataSource ds = new dbase().getdatasource();
ds.SelectCommand = mainquery;
Repeater1.DataSource = ds;
Repeater1.DataBind();
After the DataBind, is any kind of Close function needed, or any other code
that should be written to dispose off things?
Thanks,
...ab