Add related record using a gridview

DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Add related record using a gridview

  1. #1
    Join Date
    Dec 2009

    Add related record using a gridview

    OK, I am new to ASP.NET and had been using ASP Classic but for the life of me I cannot find an efficient way to add a new record (using gridview) to a list 'related' records (meaning each one must also contain the foreign key). I've been at this day after day (a task I used to do using classic in about 12 minutes).

    I have my gridview of related records. I tried several different workarounds for just adding any record since gridview doesn't really support inserts.

    Decided to just hook up a details view and use it's insert function.

    tracked down how to grab the foreign key from querystring and put into its field.

    tracked down how to refresh the gridview to reveal the new record.

    forgot I had to re-send the the foreign key (through a querystring since it was first called from a legacy script).

    It seems crazy to me that such a fundamental task (adding a new related record to list of related records) is like re-inventing the wheel here for some reason.

    Has anyone seen the elegant solution?

  2. #2
    Join Date
    Aug 2009

Similar Threads

  1. Replies: 4
    Last Post: 04-22-2009, 06:38 PM
  2. help with Access DB, cant add a record.
    By ogie in forum VB Classic
    Replies: 1
    Last Post: 10-18-2001, 10:26 AM
  3. NullPointerException when reading text file
    By Andrew McLellan in forum Java
    Replies: 3
    Last Post: 05-09-2001, 06:34 PM
  4. Add new record to Access from VB.
    By Susann in forum VB Classic
    Replies: 3
    Last Post: 05-15-2000, 02:47 PM
  5. Re: Deleting a record with ADO .... HELP
    By Jeff Binnig in forum VB Classic
    Replies: 0
    Last Post: 03-27-2000, 04:31 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center