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. Procedure or function 'bla' expects parameter '@OrderNumber', which was not supplied.

Procedure or function 'bla' expects parameter '@OrderNumber', which was not supplied.

Scheduled Pinned Locked Moved ASP.NET
helpquestion
4 Posts 3 Posters 3 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
    Johan Hakkesteegt
    wrote on last edited by
    #1

    Hi, Breaking my head, over this error, for which the reason according to all google results I have been able to find, is usually a simple omission of SelectCommandType="StoredProcedure", or some simple typo. If this is the case for me, I am just not seeing it.

    The address shows that the necessary parameter values are being passed to the page: "http://address/folder/OrderPicking.aspx?_afp\_nr=**1586474**_&_wh\_nr=**02**_" Any and all help much appreciated. Regards, Johan

    My advice is free, and you may get what you paid for.

    F Richard DeemingR 2 Replies Last reply
    0
    • J Johan Hakkesteegt

      Hi, Breaking my head, over this error, for which the reason according to all google results I have been able to find, is usually a simple omission of SelectCommandType="StoredProcedure", or some simple typo. If this is the case for me, I am just not seeing it.

      The address shows that the necessary parameter values are being passed to the page: "http://address/folder/OrderPicking.aspx?_afp\_nr=**1586474**_&_wh\_nr=**02**_" Any and all help much appreciated. Regards, Johan

      My advice is free, and you may get what you paid for.

      F Offline
      F Offline
      F ES Sitecore
      wrote on last edited by
      #2

      Try omitting the "@" from the name

      J 1 Reply Last reply
      0
      • F F ES Sitecore

        Try omitting the "@" from the name

        J Offline
        J Offline
        Johan Hakkesteegt
        wrote on last edited by
        #3

        Hi, Thanks for your reply. I omitted the @ characters, but unfortunately still no sigare. Regards, Johan

        My advice is free, and you may get what you paid for.

        1 Reply Last reply
        0
        • J Johan Hakkesteegt

          Hi, Breaking my head, over this error, for which the reason according to all google results I have been able to find, is usually a simple omission of SelectCommandType="StoredProcedure", or some simple typo. If this is the case for me, I am just not seeing it.

          The address shows that the necessary parameter values are being passed to the page: "http://address/folder/OrderPicking.aspx?_afp\_nr=**1586474**_&_wh\_nr=**02**_" Any and all help much appreciated. Regards, Johan

          My advice is free, and you may get what you paid for.

          Richard DeemingR Offline
          Richard DeemingR Offline
          Richard Deeming
          wrote on last edited by
          #4

          That code looks like it should work. You could try adding a handler for the Selecting event[^], and examine the Command property of the SqlDataSourceSelectingEventArgs[^] to see what parameters are set. Or, if you have access, use SQL Server Profiler[^] to see exactly what your application is sending to SQL Server. NB: It's generally recommended that you don't use sp_ to prefix the name of your stored procedures: Is the sp_ prefix still a no-no? - SQLPerformance.com[^]


          "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

          "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

          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