ADO.NET Projects

ADO.NET Project 1

ADO.NET Examples


Using the DataList Control
Previous Home Next

Add a DataListto a Web Form

  1. Open the UsingWebForms project from the Start page or the File menu.
  2. In the Solution Explorer, double-click the DataList.aspx file.Microsoft Visual Studio .NET opens the page in the form designer.
  3. Drag a DataList control from the Web Form tab of the Toolbox onto the form designer.Visual Studio adds a placeholder for the DataList control.
  4. Select the DataGrid, and then click left corner the bottom and select on choose data source

    Select a Data source Type and then press OK button

  5. Select New connection
  6. change data source

  8. Select datasource
  9. Fill server Name name select r enter database name and press ok button
  10. Save the connection and press OK button
  11. Select columns from a table and press next button
  12. Click Test query for preview data and press finish button
  13. select datasource name
  14. press f5 and run the program
Previous Home Next