Set the data source at will set the SqlDataSource control
The control is controlled as follows:
SqlDataSource1.insertCommand = "Insert Into Cate (CNAME) VALUES ('" cateadd ")"; sqlDataSource1.insert ();
Adding functions can be implemented.
I encountered problems when I read the SQL connection configuration string, and the code on the online ASP.NET 1.0 is directly used for 2.0 seems to be a problem.
Control INSERTCOMMAND flexibility may be stronger.