Previous | Home | Next |
Add a DataListto a Web Form
- Open the UsingWebForms project from the Start page or the File menu.
- In the Solution Explorer, double-click the DataList.aspx file.Microsoft Visual Studio .NET opens the page in the form designer.
- 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.
- 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
- Select New connection
- change data source
- Select datasource
- Fill server Name name select r enter database name and press ok button
- Save the connection and press OK button
- Select columns from a table and press next button
- Click Test query for preview data and press finish button
- select datasource name
- press f5 and run the program
Previous | Home | Next |