=============== OLD sql datasource ==============
============ NEW data command ================
Dim connStr As String = ConfigurationManager.ConnectionStrings("myConnectionString").ConnectionString
Dim con As SqlConnection = New SqlConnection(connStr)
Dim SQLCmd As New SqlCommand("SPRepeaterProducts", con)
SQLCmd.CommandType = CommandType.StoredProcedure 'Setup Command Type
SQLCmd.Parameters.AddWithValue("Brand", "")
SQLCmd.Parameters.AddWithValue("MinPrice", "0")
SQLCmd.Parameters.AddWithValue("maxPrice", "160")
SQLCmd.Connection.Open()
|