Deleting is not supported by ObjectDataSource 'allUsersDataSource' unless the DeleteMethod is specified
ASP.NET
1
Posts
1
Posters
0
Views
1
Watching
-
Dear fellows I've been fiddling about with some code I inherited that I hoped would allow me to delete users from my database. The users are actually part of the asnet users scheme not just a simple record table. I'm getting the error message stated in the title of my query. The funny thing is, is that it seems to be deleting the user but also returning me the error essage. can anyone tell me what is going wrong? I've been googling but not had much luck. Thanks in advance. Here's what I'm doing.............. The markup:
DataSourceID="allUsersDataSource" EmptyDataText="There are no matching users in the system." PageSize="5" BorderStyle="Solid" BorderColor="#6AA6CC"> Checked='<%#DataBinder.Eval(Container.DataItem, "IsApproved")%>' Value='<%#DataBinder.Eval(Container.DataItem, "UserName")%>' /> [ <%#DataBinder.Eval(Container.DataItem, "UserName")%>](Admin_UsersEdit.aspx?username=<%#Eval\() Text='<%# Eval("Email") %>'>