c# - retrieve data to textboxt using LINQ to SQL -
hi want ask retrieve data textbox using linq sql c# i'm using visual studio 2013 ultimate edition
i have *.dbml file , textboxt..
this code :
dataclasses1datacontext db = new dataclasses1datacontext(); var query = c in db.library select c.book;
and want retrieve data :
**textboxt**<hr> title.text;<br> name.text;<br> bookcode.text;<hr>
nb : using c# (linq sql) winform visual studio 2013
var query = c in db.library select c.book;
above code return multiple record of books. have loop on "query"
for eg
foreach (var q in query)
{ response.write(q.tostring()); // "q" have database record }
Comments
Post a Comment