I have a simple problem, and one I feel should be almost trivial. I have a set of data stored in a Database, and I'm using LinqToSql to read that data. That part is fine.
I want to display those rows on a webpage in ASP.NET (C#), and have the user be able to update existing rows and add new rows at the bottom. This I cannot do.
I'm sure it should almost be a single ASP.NET control with a DataSource property, but I'm not even sure where to start looking. I've tried googling it, but I'm not sure what I should be searching for. I'm not afraid of hard work开发者_运维知识库, but I've been wandering in virtual circles for the best part of two days on this one so far.
Please can someone direct me with some suggestions on what to search for, or some example code?
Check out the GridView and LinqDataSource web controls.
please read the following link it may help you i hope
http://www.asp.net/data-access/tutorials/inserting-updating-and-deleting-data-with-the-sqldatasource-vb
i know it a long long story to read but you will get something from it definately
精彩评论