I am trying to bound my sql statement to with this SqlDataSource1.SelectCommand and i am getting an error message.I am also passing one parameter to this sql statement using the below code. your help is really appreciated.
ORA-01008: not all variables bound
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.OracleClient.OracleException: ORA-01008: not all variables bound
Sub VendorSearch()
Dim Sql As String = " select * from vendor where vnamel like :VendorName"
Dim myCommand3 As OracleCommand = New OracleCommand(Sql, New OracleConnection(GetConnectionString()))
myCommand3.Parameters.AddWithValue(":VendorName", "%" & txtVendorName.Text & "%")
Dim myAdapter3 As New OracleDataAdapter(myCommand3)
Response.Write("Sql " & "<br/>" & Sql & "<hr/>")
SqlDataSource1.SelectCommand = Sql
End Sub
ORA-01008: not all variables bound
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.OracleClient.OracleException: ORA-01008: not all variables bound
Sub VendorSearch()
Dim Sql As String = " select * from vendor where vnamel like :VendorName"
Dim myCommand3 As OracleCommand = New OracleCommand(Sql, New OracleConnection(GetConnectionString()))
myCommand3.Parameters.AddWithValue(":VendorName", "%" & txtVendorName.Text & "%")
Dim myAdapter3 As New OracleDataAdapter(myCommand3)
Response.Write("Sql " & "<br/>" & Sql & "<hr/>")
SqlDataSource1.SelectCommand = Sql
End Sub