public void adddata()
{
conn.Open();
string strSQL = "Select * from LOGINDETAILS";
OleDbCommand cmd = new OleDbCommand(strSQL, conn);
DataSet ds = new DataSet();
OleDbDataAdapter da = new OleDbDataAdapter(cmd);
da.Fill(ds);
GridView1.DataSource = ds;
GridView1.DataBind();
}
Call this method in pageload.....
Thats it.......
No comments:
Post a Comment