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 > Commit transaction in the same page

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-21-04, 02:10
ayu ayu is offline
Registered User
 
Join Date: Apr 2004
Location: Malaysia
Posts: 25
Commit transaction in the same page

Can somebody give me an idea. Can I do the transaction in the same page without post to another page. The code I type myself. I know that using dreamweaver it can be done but how if I type it myself. what should i put at the action form?..
Reply With Quote
  #2 (permalink)  
Old 04-21-04, 02:37
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
You just post back to the same page....

You need to set up logic in your page to determine if you need an update/insert/delete or what ever it is your are trying to do.
Reply With Quote
  #3 (permalink)  
Old 04-21-04, 03:01
ayu ayu is offline
Registered User
 
Join Date: Apr 2004
Location: Malaysia
Posts: 25
Reply rokslide

Quote:
Originally posted by rokslide
You just post back to the same page....

You need to set up logic in your page to determine if you need an update/insert/delete or what ever it is your are trying to do.
Can you explain in detail where should I put the insert statement in the same page . Is it after the form statement.
Reply With Quote
  #4 (permalink)  
Old 04-21-04, 03:05
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
something like this....
Code:
<%
if request.form("btnInsert")="Insert" then
  ' do insert
elseif request.form("btnDelete")="Delete" then
  ' do delete
end if
%>
<html>
  <body>
    <form>
    do stuff
    <input type="button" name="btnInsert" id="btnInsert" value="Insert">
    <input type="button" name="btnDelette" id="btnDelete" value="Delete">
    </form>
  </body>
</html>

Last edited by rokslide; 04-21-04 at 03:25.
Reply With Quote
  #5 (permalink)  
Old 04-21-04, 20:18
ayu ayu is offline
Registered User
 
Join Date: Apr 2004
Location: Malaysia
Posts: 25
Thank you rokslide

Thank you rokslide for helping me solving my problem.. you are very nice guy ...
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