Insert Records From GridView to another GridView Page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Nemphyst
    New Member
    • Jan 2013
    • 3

    Insert Records From GridView to another GridView Page

    Can somebody help me?
    I am developing a website using Microsoft Expression Web. My database is MS Access. My page extension is .aspx (ASP.NET)

    I have two gridview:

    1. Pending Records GridView = under PendingRecords. aspx page. I want this gridview to allow me to accept first all the requested records before they go straight under the Main Gridview. Of course, the gridview have "ADD" button. When I click the button, I want the records to be transfer in Main Records GridView.

    [IMGNoThumb]http://bytes.com/attachments/attachment/6799d1357309756/add.jpg[/IMGNoThumb]

    2. Main GridView = under Records.aspx page. I want this gridview to display all the records that I already accepted in Pending Records Gridview.

    Simple as that!

    Thanks in advance!
    Attached Files
    Last edited by Frinavale; Jan 8 '13, 02:03 PM. Reason: Fixed image
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    I think the easiest way to do this is, when the user clicks the add button, add the record to a variable stored in Session so that you can pass it to the next page.

    Once you are on the next page, add the records that are in Session (if there are any) to the data source of the GridView in that page.

    -Frinny

    Comment

    Working...