|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
|
|
#1
|
|||
|
|||
|
Saving data on Form
I want to display multiple records on a form. The user has the choice of editing 1 or more records and then saving the changes. What would be the basic code I need to save the changed records? How would I capture the individual changes? Right now the only thing that I can get to save is one record per page, not multiple records on a page, because the request.form variables come in in an array format when I put more than one record on a page.
Thanks. New/Rusty ASP user |
|
#2
|
|||
|
|||
|
not sure how you're doing it, but generally i've seen edit one record at a time with
<a href="popup_page.asp?id=<%=RS("primarykey")%>">Edit</a> as the edit me button. So you want one submit button and a bunch of checkboxes for update these.... you can check to see if the checkbox is checked then (you have that checkbox be the primary key) update rows where = to that primary key. if you have on final submit button and want it to smart detect the rows with no indications besides if it's been touched...... Do you have all your data entered into text boxes and those are all displayed accross the screen and they can update it directly that way? You could set up each row, so that onblur you add the primary key of that row to an array. and then when they submit one button you can then update the DB with the primary keys that you wrote to the array....never tried this, but it sounds like i dont' want to and would prefer to have the checkbox method.... |
|
#3
|
|||
|
|||
|
Saving more than one record on Form
I guess the checkbox idea is feasible. That means the user has to check this to show she/he edited it?
Thanks. ![]() |
|
#4
|
|||
|
|||
|
booo, now you're not being creative
![]() fine, go the easy way, psssh well, i assume you know client side scripting. So just add an onblur for the row and when a user updates a record pop the onblur calls your javascript to set the checkbox to checked =) |
|
#5
|
||||
|
||||
|
You can also do this with ActiveX controls in vb, but doing it w/ scripting is probably easier.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Saving data on Form |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|