Hi,
I am using SqlDataAdapter in asp.net c# but a strange error i am facing can sombody assist me to fix it! SqlDataAdapter' does not contain a definition for 'Fill' and no extension method 'Fill' accepting a first argument of type 'SqlDataAdapter' could be found (are you missing a using directive or an assembly reference? SqlDataAdapter' does not contain a constructor that takes 1 arguments
screenshot
Regards
firoz khan
Hi firoz1986,
I have cross checked your code and is working without any error. Its working at my end.
You are right only
SqlConnection conn = new SQlConnection(); conn.open(); SqlCommand cmd =new SqlCommand("Select *from employye",conn) Dataset ds = new Dataset(); SqlDataadapter adp new SqldataAdapter(cmd); adp.Fill(ds);
yes you are right sir, some files were given bad name that is why error was coming. no it's ok i deleted those.
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.