ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 23rd, 2003, 07:11 AM
janusz_monkey janusz_monkey is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: West Midlands, U.K.
Posts: 47 janusz_monkey User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Call code from another page

Hi,

I have two requests.

First:

Code:
<span class="verdboldyell">
<%=FormatNumber(carttotal, 2, -2, -2, 0)%>
</span>
<span class="verdboldyell">
<%Session("cost")=FormatNumber(carttotal, 2, -2, -2, 0)%>
</span>


This piece of code is used on a page called "basket.asp". It shows the current total in the clients basket.

I want to be able to use this total and loads of pages. Is there anyway that I can call this piece of script from a page called "one.asp" so that the total appears anywhere on "one.asp" where I put the necessary code?

Second:

Similar to the above,

Code:
<%	
If (CStr(Request.Form("Submit")) = "Empty") Then
emptybasket
end if
%>


and

Code:
<input name="Submit" type="Submit" value="Empty">


The first piece empties the basket whilst on the "basket.asp" page when the second piece of code/button is submitted.

Is it possible to empty the cart from a different page? I want to have some normal text if possible instead of a button, so when the user clicks on it, the cart empties. I want this code to work on different web pages to "basket.asp" such as "one.asp"

Many thanks,

Janusz
__________________
http://www.xlibris.co.uk
http://janusz.monkey-it.co.uk

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > Call code from another page


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT