If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Editing a record through the Asp

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-09-04, 04:12
graceson graceson is offline
Registered User
 
Join Date: Mar 2004
Location: India
Posts: 56
Smile Editing a record through the Asp

Dear friends,

I want to bring the record in to form from database,and edit the record there .
I could bring the record from database to form by opening recordset as assigning value like

textbox.value=<%=recordset("fieldname")%>.

But after changing the record in form ,how i can update the form.Please help me in this problem.
Reply With Quote
  #2 (permalink)  
Old 08-09-04, 13:08
Seppuku Seppuku is offline
Useless...
 
Join Date: Jul 2003
Location: SoCal
Posts: 721
Either post to another page which takes that form value, and execute an UPDATE SQL statement, or post to another page which takes that form value, opens a non-static recordset and use ADO's Update method.

Or even better yet, if Stored Procedures are an option, create a SP that will do the update.
__________________
That which does not kill me postpones the inevitable.
Reply With Quote
  #3 (permalink)  
Old 08-09-04, 20:55
Bullschmidt Bullschmidt is offline
Guru
 
Join Date: Jun 2003
Location: USA
Posts: 1,032
And www.asp101.com in the Samples area has some short database examples.
__________________
J. Paul Schmidt, Freelance Web and Database Developer
www.Bullschmidt.com
Access Database Sample, Web Database Sample, ASP Design Tips
Reply With Quote
Reply

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On