DataGrid control (1)

zhaozj2021-02-16  55

Because it is just beginning to learn ASP.NET, the most important thing is because of the reason, it is now not using ASP.NET to develop software, so the study time is relatively less, and learning is relatively slow, plus me this person. Stupid, so there is this article.

Holding a book for ASP.NET for a long time, when you see the introduction to the DataGrid control, you can't help but try to do a small program. Two examples have been given, one is automatically generated, and the other is manually generated, I chose manual generation columns. code show as below:

<% @ Page language = vb runat = server debug = true%> <% @ Import namespace = "system"%> <% @ import name "%> <% @ import name"%> <% @ import namespace = "system.data. OLEDB "%> <% @ import name.sqlclient"%> <% @ import namespace = "system.text"%> <% @ Import namespace = "system.io"%> <% @ import namespace = "System.Web"%> <% @ import namespace = "system.Web.ui"%> <% @ Import namespace = "system.Web.ui.WebControls"%>