Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Delete
Message
From
08/06/2003 11:24:08
 
 
To
All
General information
Forum:
ASP.NET
Category:
ADO.NET
Title:
Delete
Miscellaneous
Thread ID:
00797763
Message ID:
00797763
Views:
67
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
Map
View

Click here to load this message in the networking platform