This is the error when i try to execute my code "Procedure or function 'Get Customer data' expects parameter '@Name', which was not supplied."
objCommand.CommandType = CommandType.StoredProcedure
objCommand.CommandText = "GetCustomerData"
Dim ObjParam1 As New SqlParameter("@Name", SqlDbType.VarChar, 2000)
ObjParam1.Value = ID.ToString()
Dim da As New SqlDataAdapter(objCommand)
Dim dt As New DataTable
da.Fill(dt)// error shows here
DetailsView2.DataSource() = dt
DetailsView2.DataBind()
objConnection.Close()
In debugging, i c the value in ObjParam1.value that I'm passing.
Any suggestions please.
Thanks