Bonjour,
peut on passer une proc Stock à un datasource ?
Si oui comment ?
J'essaye ce genre de code mais ca passe pos ..
Dim lconSQL As New SqlConnection(AppSettings("ConnectionString"))
lconSQL.Open()
Dim lcmdGetOrders As New SqlCommand("sp_getOrders", lconSQL)
lcmdGetOrders.CommandType = CommandType.StoredProcedure
lconSQL.Close()
mSqlDataSource.ConnectionString = AppSettings("ConnectionString")
mSqlDataSource.SelectCommandType = SqlDataSourceCommandType.StoredProcedure
mSqlDataSource.SelectCommand = lcmdGetOrders
Merci
A peluche