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?
By chupacabra in forum VB Classic
Last Post: 04-22-2009, 06:38 PM
By ogie in forum VB Classic
Last Post: 10-18-2001, 10:26 AM
By Andrew McLellan in forum Java
Last Post: 05-09-2001, 06:34 PM
By Susann in forum VB Classic
Last Post: 05-15-2000, 02:47 PM
By Jeff Binnig in forum VB Classic
Last Post: 03-27-2000, 04:31 PM
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL