I have wired up an Object DataSource control on the page to do the grunge work for me however when I try to Delete a record my target DeleteMethod does not get the parameters it requires. I have looked around on the help and it looks like the data is supposed to be extracted and available for me to use.
| <asp:ObjectDataSource ID="DocLinkViewDataSource" runat="server" TypeName="DocumentsManager" | |
| SelectMethod="getDocumentBranchLinkDS" | |
| InsertMethod="CreateDocumentBranchLink" | |
| UpdateMethod="UpdateDocumentBranchLink" | |
| DeleteMethod="DeleteDocumentBranchLink"> | |
| ....... | |
| <DeleteParameters> | |
| <asp:Parameter Name="BranchDatabase" Type="String" /> | |
| <asp:Parameter Name="DocumentID" Type="String" /> | |
| <asp:Parameter Name="BusinessType" Type="String" /> | |
| </DeleteParameters> | |
| </asp:ObjectDataSource> |
| Public Sub DeleteDocumentBranchLink(ByVal BranchDatabase As String, _ | |
| ByVal DocumentID As String, ByVal [BusinessType] As String) |