[ASP.NET 2.0] [Learn Note] ACCESSDATASOURCE's UPDATECMMAND statement

xiaoxiao2021-04-04  269

VB version example:

<% @ Page language = "vb"%>

ID = "AccessDataSource1"

Runat = "server"

DataSourceMode = "dataset"

DataFile = "~ / app_data / northwind.mdb"

SelectCommand = "Select Employeeid, Firstname, Lastname, Title from Employees"

UpdateCommand = "Update Employees set firstname =?, lastname = ?, title =? where urgeyeid = @ EmployeeID

ID = "GridView1"

Runat = "server"

AutogenerateColumn = "false"

Datakeynames = "EmployeeID"

AutogenerateEditButton = "true"

DataSourceId = "AccessDataSource1">

-----------------------

The above examples come from Microsoft MSDN: http: //msdn2.microsoft.com/en-cn/library/system.Web.ui.WebControls.accessDataSource.aspx

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

New Post(0)