ASP.NET 2.0 uses SqlDataSource's personal experience

xiaoxiao2021-04-04  270

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.

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

New Post(0)