Ofir A.
Ofir A.

Reputation: 3162

Display Table Data to the user in Visual Studio 2010

Because nobody answered to my previous questions I need to find a different solution.

So, if you can please help me I would appreciate it very much.

I need to present to the user that use the app some table data by his name and id.

In other words I have a table data about flights reservations that the user performed earlier. that table contains flight reservations of all the users.

now I want that in case the user entered his user name and id I will show him all the data from the table that the columns userName and idNumber equals to his personal details.

How can I do this?

Upvotes: 0

Views: 1631

Answers (1)

Tridus
Tridus

Reputation: 5081

Where's the data coming from? If you're using a database, then databinding is going to be the simplest method of doing this. There are a ton of examples of databinding to a SQL database around the web. Here's one.

For showing only the selected user's data, you would add filters to the query appropriately. You can also search Google for ASP.net data binding and get a lot of examples.

Upvotes: 1

Related Questions