Answered by:
displaying dataTable?

Question
-
User2120626037 posted
Hello
I am new in studing asp.net.
what is the easiest way for displaying in web form a table from database that i create in SQL Server Management.
Wednesday, September 7, 2011 2:43 PM
Answers
-
User-1188032534 posted
There's a few ways to do this, if you want to be able to create/read/update/delete (crud) functionality the GridView is the way to go:
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.aspx
The ListView is useful if you want to be able to freely design the list yourself:
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.listview.aspx#Y213
DataGrid just displays the the data as a table without the built in ability to edit:
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.datagrid.aspx
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Wednesday, September 7, 2011 2:50 PM -
User-1835172754 posted
Hi
one of the best optiobs is using grid view from your toolBox in a asp form. and then configure it and connect it to your datasource(SQL database) by inserting a datasource from toolBox.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Thursday, September 8, 2011 2:40 PM
All replies
-
User-1188032534 posted
There's a few ways to do this, if you want to be able to create/read/update/delete (crud) functionality the GridView is the way to go:
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.aspx
The ListView is useful if you want to be able to freely design the list yourself:
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.listview.aspx#Y213
DataGrid just displays the the data as a table without the built in ability to edit:
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.datagrid.aspx
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Wednesday, September 7, 2011 2:50 PM -
User-1835172754 posted
Hi
one of the best optiobs is using grid view from your toolBox in a asp form. and then configure it and connect it to your datasource(SQL database) by inserting a datasource from toolBox.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Thursday, September 8, 2011 2:40 PM