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. Grid Delete is not working(DeleteCommandType="StoredProcedure") plz Help?

Grid Delete is not working(DeleteCommandType="StoredProcedure") plz Help?

Scheduled Pinned Locked Moved ASP.NET
csssharepointdatabasesysadminhelp
3 Posts 2 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.
  • A Offline
    A Offline
    alaminfad
    wrote on last edited by
    #1

    i got SP that is working fine ,i checked it in the SQL serever ,but it is not working with the Grid ,i tried changing the parameter name but it didnt work , here is the ASP code -------------------------------------------------------------------------- <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:APServerConnectionString1 %>" DeleteCommand="Multiple_Delete" SelectCommand="SELECT PROC_INST_ID, PROC_INST_NAME, DEF_NAME FROM WF_PROC_INSTS" DeleteCommandType="StoredProcedure"> <DeleteParameters> <asp:Parameter Name="_PROC_INST_ID" /> </DeleteParameters> </asp:SqlDataSource> ----------------------------------------------------------------------- is there anything wrong here? ThnX

    G 1 Reply Last reply
    0
    • A alaminfad

      i got SP that is working fine ,i checked it in the SQL serever ,but it is not working with the Grid ,i tried changing the parameter name but it didnt work , here is the ASP code -------------------------------------------------------------------------- <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:APServerConnectionString1 %>" DeleteCommand="Multiple_Delete" SelectCommand="SELECT PROC_INST_ID, PROC_INST_NAME, DEF_NAME FROM WF_PROC_INSTS" DeleteCommandType="StoredProcedure"> <DeleteParameters> <asp:Parameter Name="_PROC_INST_ID" /> </DeleteParameters> </asp:SqlDataSource> ----------------------------------------------------------------------- is there anything wrong here? ThnX

      G Offline
      G Offline
      Gamzun
      wrote on last edited by
      #2

      Aren't we suppose to define sp name in sqldatasource attibutes?

      Please don't forget to mark 'Good Answer', if you find it really a good one! Kashif

      A 1 Reply Last reply
      0
      • G Gamzun

        Aren't we suppose to define sp name in sqldatasource attibutes?

        Please don't forget to mark 'Good Answer', if you find it really a good one! Kashif

        A Offline
        A Offline
        alaminfad
        wrote on last edited by
        #3

        thnx for replyin , Actaully i did'nt write that code it was auto generated by the grid when i configured the datasource :)

        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