hi
all
hen i delete following error occures.
procedure 'Deleteemploymaster' expects parameter '@Empid', which was not supplied.
My coding ......
Dim Scn As SqlConnection = New SqlConnection(ConnectionString)
Dim Deletecommand As New SqlDataAdapter("DeleteEmploymaster", Scn)
Dim myparm As SqlParameter = Deletecommand.DeleteCommand.Parameters.Add("@empid", SqlDbType.Int, "empid")
DsEmployee.EmployMaster.Rows(Me.BindingContext(DsEmployee.EmployMaster).Position).Delete()
Deletecommand.Fill(DsEmployee, "employeemaster")
Deletecommand.Update(DsEmployee, "EmployMaster")
Deletecommand.Dispose()
DsEmployee.Dispose()
Scn.Close()
@empid is rawid it is not binding with objects.
thanks
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only