FUNCTION FOR ADDING DATA FROM DATADASE TO GRID IN ASP.NET
-------------------------------------------------------------------------------------
public void grid()
{
DataTable dt = new DataTable();
string qu1 = "select * from shop_category";
dt = obj.call(qu1);
if (dt.Rows.Count > 0)
{
Gridcategory.DataSource = dt;
Gridcategory.DataBind();
}
else
{
}
}
-------------------------------------------------------------------------------------
2 comments:
da.... what is obj.call()????????
myclass obj=new myclass
obj means object for a classs
call is a function for reading data
Post a Comment