Read function for asp.net
-------------------------------------------------------------------------------------------------
public DataTable read_function(string cal)
{
con.Open();
SqlDataAdapter da = new SqlDataAdapter(cal, con);
DataTable dt = new DataTable();
da.Fill(dt);
con.Close();
return dt;
}
---------------------------------------------------------------------------------------------------
No comments:
Post a Comment