|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Call code from another page |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|