Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > SQL Server > SQL Server ASP
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
SQL Server ASP Discussions about ASP programming with Microsoft's SQL Server. For more ASP forums, see the ASP forum category.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server ASP section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 1st, 2007, 05:11 AM
Authorized User
Join Date: Mar 2007
Location: , , .
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default help writing dynamic form data to dynamic table

I have a dynamic form and a dynamic table (both generated by an asp 'wizard'), so I need a dynamic way of writing the form data from the dynamic form to the dynamic table.
So far, I can get the table field names and the form field names (both in order), but I cannot seem to get the loop(s) right to marry the two. Any ideas? A sample would be terrific. I am under a deadline, so any responses are greatly appreciated.


Reply With Quote
  #2 (permalink)  
Old June 1st, 2007, 08:09 AM
Authorized User
Join Date: Mar 2007
Location: , , .
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts

Quick thanks to all who viewed my question --
I figured out that I was overthinking the process when the solution was pretty simple. The key to it was remembering that the dynamic form element names are always the same as the dynamic table field names for this application. Here is a sample of the code for those who may ask the same question in the future:
Set RSC = Server.CreateObject("ADODB.Recordset")
RSC.Open myTable, Conn, 2, 2
      For ix = 1 to Request.Form.Count-1
      RSC(Request.Form.Key(ix)) = Request.Form.Item(ix)

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
help writing dynamic form data to dynamic table ublend Classic ASP Professional 1 June 1st, 2007 08:08 AM
Pivot Table Dynamic Reference Data oyelesit Excel VBA 2 August 4th, 2006 07:28 AM
problem writing dynamic value into text file in ph method PHP How-To 0 February 6th, 2006 02:05 PM
Dynamic check boxes writing to database..help!! cincinnaticj7 Classic ASP Databases 0 January 25th, 2005 10:47 AM
Entering data to dynamic table cells weebadbilly XSLT 0 June 30th, 2004 07:15 AM

All times are GMT -4. The time now is 04:18 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.