Linqdatasource updating

15 Jan

Design the List View control with Layout Template, Item Template, Insert Item Template, and Edit Item Template. We will have a dropdownlist for binding the list of available departments in Insert Item Template and Edit Item Template.

button is used to add a new author to the authors list.So when I first started working with SQL Server 2008 and LINQ, I would pretty much just use the Linq Data Source because it was definitely the easiest to use.It’s pretty good for testing purposes, or really small projects, but if you’re doing anything that is going to grow / is large already, then you’ll probably not want all that logic embedded in your pages.You can notice that I am passing a parameter in this method called sort Expression.After getting records into Data Table, I am sorting it based on the sortexpression passed to this method.