0

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?

1
  • 1
    You tried doing it with a gridview? That seems the simplest way. Commented May 19, 2011 at 12:56

2 Answers 2

4

Check out the GridView and LinqDataSource web controls.

Sign up to request clarification or add additional context in comments.

1 Comment

+1 Gridview should work for you but if you need more fine control check out listview as well.
2

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

2 Comments

From my experience this is the easiest way to make this.
@ Nick:even i used it quite a few times :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.