Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Deleting is not supported by ObjectDataSource 'allUsersDataSource' unless the DeleteMethod is specified

Deleting is not supported by ObjectDataSource 'allUsersDataSource' unless the DeleteMethod is specified

Scheduled Pinned Locked Moved ASP.NET
databasequestionhtmldockerarchitecture
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JimBob SquarePants
    wrote on last edited by
    #1

    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") %>'>
    
    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups