Search code examples
c#asp.netdata-entry

Updating Database from ASP.NET


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?


Solution

  • Check out the GridView and LinqDataSource web controls.