ASP.NET Webmatrix DataGrid uses template columns to print data display.

zhaozj2021-02-16  45

In Microsoft's free ASP.NET Development Tools ASP.NET Webmatrix we can easily use template columns in DataGrid to display data.

This example uses the PUBS database that comes with SQL Server2000.

First, open ASP.NET WebMatrix to create a new file, type "Simple Data Report" in "Data Pages", then switch to the Code view, the default database connection string is:

DIM Connectionstring as string = "server = (local); database = public = true"

Change to:

DIM Connectionstring As String = "Server = (local); Database = PUBS; UID = SA; PWD = SA"

转载请注明原文地址:https://www.9cbs.com/read-25812.html

New Post(0)