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. SqlDataSource ERROR: Function or stored procedure has too many arguments passed. [modified]

SqlDataSource ERROR: Function or stored procedure has too many arguments passed. [modified]

Scheduled Pinned Locked Moved ASP.NET
helpdatabaseannouncement
4 Posts 3 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.
  • M Offline
    M Offline
    mominafiz
    wrote on last edited by
    #1

    hi,

    i m facing problem in gridview updating. I m using sqldatasource to select and update the record.
    In select of sqldatasource i m passing three parameter and in update i m passing 4 parameter. when i run my program, the select in sqldatasource works perfect. but when i update that record...its throws error...
    " Function or stored procedure has too many arguments passed". Even though i m getting this error and my page crashes...i m still able to update the record, this i noticed when i stop the program after webpage crash and then run the program again. but i dont want my webpage to crash.

    Here is my ASPX file code...

    R L 2 Replies Last reply
    0
    • M mominafiz

      hi,

      i m facing problem in gridview updating. I m using sqldatasource to select and update the record.
      In select of sqldatasource i m passing three parameter and in update i m passing 4 parameter. when i run my program, the select in sqldatasource works perfect. but when i update that record...its throws error...
      " Function or stored procedure has too many arguments passed". Even though i m getting this error and my page crashes...i m still able to update the record, this i noticed when i stop the program after webpage crash and then run the program again. but i dont want my webpage to crash.

      Here is my ASPX file code...

      R Offline
      R Offline
      R Giskard Reventlov
      wrote on last edited by
      #2

      Way too much code: you need to cut it down so that only the pertinent fragments are here. If anyone that answers needs more they'll ask.

      "If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair. nils illegitimus carborundum me, me, me

      1 Reply Last reply
      0
      • M mominafiz

        hi,

        i m facing problem in gridview updating. I m using sqldatasource to select and update the record.
        In select of sqldatasource i m passing three parameter and in update i m passing 4 parameter. when i run my program, the select in sqldatasource works perfect. but when i update that record...its throws error...
        " Function or stored procedure has too many arguments passed". Even though i m getting this error and my page crashes...i m still able to update the record, this i noticed when i stop the program after webpage crash and then run the program again. but i dont want my webpage to crash.

        Here is my ASPX file code...

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        hi mominafiz, can you post complete code of so that it is clearer to understand why your page is crashing? HTH

        Jinal Desai - LIVE Experience is mother of sage....

        M 1 Reply Last reply
        0
        • L Lost User

          hi mominafiz, can you post complete code of so that it is clearer to understand why your page is crashing? HTH

          Jinal Desai - LIVE Experience is mother of sage....

          M Offline
          M Offline
          mominafiz
          wrote on last edited by
          #4

          i got to know why my page was crashing.. thanks

          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