Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Delete
Message
De
08/06/2003 11:24:08
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Titre:
Delete
Divers
Thread ID:
00797763
Message ID:
00797763
Vues:
64
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform