When you write this article, you must first thank BBEN_H and JDXX, which is BBEN_H to replace this problem in C #, JDXX solves this problem, and also makes I remember some of the procedures you have done (Simple website news release System), now give it to everyone, hoping to learn from the ADO.NET to operate SQL Server database and DataGrid control components.
Database structure
Database Name: MyDB, Data Table Name: News News Table Structure ID (INT 4) Increment ID Biaoti (NVARCHAR 50) News Title Zhaizi (NVARCHAR 50) From Neirong (Ntext 16) News Content Shijian (NVARCHAR) 50) Image Path Counter (INT 4) Click on the program to connect the SQLServer database, where NetFireSoft is the name of my machine.
Website Press Release System Source Program: (Database is SQLServer) Add page (addNews.aspx) <% @ page language = "c #" debug = "true"%> <% @ import namespace = "system.data"%> <% @ Import name.sqlclient "%>