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. Adding your own submit and insert procedure to detailsview in asp.net2 c#

Adding your own submit and insert procedure to detailsview in asp.net2 c#

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netdatabasehelpquestion
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.
  • A Offline
    A Offline
    AdamskiR
    wrote on last edited by
    #1

    Hi I have a detailsview which is loaded from a datagrid. What I want is that when you edit the record, i want it to not just edit that record but actually insert a new updated record with the new details and put a close on the previous. I have a stored procedure which does this (as the application was originally done in .net1 and we wanted to see how we would go about doing it in .net2) But the way the details view works it wont allow us to use the storedprocedure on the edit/update section. So ive tried to do it by adding my own submit button to the update field by creating it to a template field. But now we cant find anyway of from this button writing the code to call the stored procedure and insert from the sqldatasource. Please can anyone help with this?:confused: Thanks Adam

    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