I am getting following thing when I trying to get data from Sql server data base and display it in GridView. My code as follows:
string connstr = @"Data Source=.\SQLEXPRESS; Initial Catalog=Aman;User ID=sa; Password=123";
DataSet ds = new DataSet();
SqlDataAdapter da;
DataTable dt = new DataTable();
SqlConnection conn = new SqlConnection(connstr);
conn.Open();
da = null;
string strsql = "Select File_ID,File_Name,File_Type from Upload_file";
da = new SqlDataAdapter(strsql, conn);
da.Fill(ds, "Upload_file");
GridView1.DataSource = ds.Tables["Upload_file"].DefaultView;
GridView1.DataBind();
