How to access database from a web service in ASP.NET? i have a [webmethod] in WebServices class and this is not calling in code file:
[WebMethod]
public DataSet Populate(string con, string sql)
{
DataSet DS = new DataSet();
SqlConnection conn = new SqlConnection(con);
SqlDataAdapter DA = new SqlDataAdapter(con, sql);
DA.Fill(DS);
Return DS;
}