B4X:
public class OutletController : Controller
{
// GET: Outlet
public ActionResult Index()
{
return View();
}
public DataSet GetPosname()
{
using (SqlConnection con = new SqlConnection("Data Source=.\\SQLEXPRESS;Initial Catalog=lpos;user id=sa;password=123;MultipleActiveResultSets=True;"))
{
using (SqlCommand cmd = new SqlCommand("select * from posmast", con))
{
using (SqlDataAdapter da = new SqlDataAdapter(cmd))
{
DataSet ds = new DataSet();
da.Fill(ds);
return ds;
}
}
}
}
}
above visual c# .net function is my web application to retrieve data from database, here it returns record set, but in the web browser it throw the output as
System.Data.DataSet
i am not sure whether its returning correct dataset or it showing wrong output
if its correct output in browser then how to use this record set in our B4A project to read all the rows in the recordset