Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Deleting records

Reply
Thread Tools

Deleting records

 
 
Amit Kela
Guest
Posts: n/a
 
      01-28-2004
I am using ASP with SQL for my database.
The problem I have is that even after I have ordered certain items
from the shopping cart table on the webpage, I cannot remove them -
that is the entire list shows up the next time the table is opened.

is there any way I can delete the items once ordered so as to not let
them show in my table??
 
Reply With Quote
 
 
 
 
Ray at
Guest
Posts: n/a
 
      01-28-2004
Are you trying to execute a delete on the records and it's failing? When
are you doing the delete, upon completion of the transaction? Deleting
records isn't an issue as long as you execute a delete query.

Ray at home

"Amit Kela" <> wrote in message
news: om...
> I am using ASP with SQL for my database.
> The problem I have is that even after I have ordered certain items
> from the shopping cart table on the webpage, I cannot remove them -
> that is the entire list shows up the next time the table is opened.
>
> is there any way I can delete the items once ordered so as to not let
> them show in my table??



 
Reply With Quote
 
 
 
 
Jeff Cochran
Guest
Posts: n/a
 
      01-28-2004
On 28 Jan 2004 13:57:41 -0800, (Amit Kela)
wrote:

>I am using ASP with SQL for my database.
>The problem I have is that even after I have ordered certain items
>from the shopping cart table on the webpage, I cannot remove them -
>that is the entire list shows up the next time the table is opened.
>
>is there any way I can delete the items once ordered so as to not let
>them show in my table??


Terminology is important here, are you talking about deleting the
records from a database table or not showing those items in the HTML
table on your page?

Jeff
 
Reply With Quote
 
Aaron Bertrand - MVP
Guest
Posts: n/a
 
      01-28-2004
If the order has been placed, the cart data in the database should be
cleared out (or marked as ordered) and even the session("cartid") cleared
out - or whatever ties that specific session to that specific set of data in
the database.

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/




"Amit Kela" <> wrote in message
news: om...
> I am using ASP with SQL for my database.
> The problem I have is that even after I have ordered certain items
> from the shopping cart table on the webpage, I cannot remove them -
> that is the entire list shows up the next time the table is opened.
>
> is there any way I can delete the items once ordered so as to not let
> them show in my table??



 
Reply With Quote
 
Amit Kela
Guest
Posts: n/a
 
      02-02-2004
Jeff,
You're right, I wasnt too clear in my previous email.
But the problem I have is that the records are deleted from the SQL
database table but still show up on the ASP webpage even after being
ordered.
I cannot figure out where this data is stored if its not in the table



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
Ray at
Guest
Posts: n/a
 
      02-02-2004
Perhaps in the client's cached version of your page. Try preventing caching
for your pages.
http://www.aspfaq.com/show.asp?id=2022

Ray at work

"Amit Kela" <> wrote in message
news:%23$...
> Jeff,
> You're right, I wasnt too clear in my previous email.
> But the problem I have is that the records are deleted from the SQL
> database table but still show up on the ASP webpage even after being
> ordered.
> I cannot figure out where this data is stored if its not in the table
>
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!



 
Reply With Quote
 
Amit Kela
Guest
Posts: n/a
 
      02-04-2004
Hey Ray,
Thanks for your reply on adding the code to delete the cache.
The problem seems to be partially solved. Now the cart shows empty
after I've placed an order. However, once I add any new item to the
cart, the new item shows up alongwith the list of items already ordered.
Amit



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
 
 
Reply

Thread Tools

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple query returns 0 records in asp, but all records in vbscript masg0013@gmail.com ASP General 3 11-02-2006 09:23 AM
Deleting multiple records(rows) from tables using checkboxes Patrick.O.Ige ASP .Net 0 11-03-2005 11:41 PM
question about deleting records from mysql nephish@xit.net Python 8 07-27-2005 08:54 PM
Delete records or update records Dan ASP General 1 05-10-2004 01:25 PM
match muliple header records to associated detail records Luke Airig XML 0 12-31-2003 12:06 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57