Running Classic ASP code in Umbraco Options
garybronson
Posted: Tuesday, August 22, 2006 5:47:13 PM
Rank: Aficionado

Joined: 7/20/2006
Posts: 107
I have a shopping cart and photo gallery written in ASP and i was wondering if there was a way to blend it into an Umbraco page. The files have a few Include file references in them but they didn't run when i tried to add an include to a template or the document. So before i went too much farther i wanted to see if anyone else has had to do this.

Thanks,

GaryB
pph
Posted: Tuesday, August 22, 2006 6:23:22 PM
Rank: Aficionado

Joined: 7/19/2006
Posts: 165
Location: aalleren, Denmark
you can't (not without a great deal work atleast) mix classic asp and asp.net.

You can give the visitor the illusion of these 2 things running on the same site tho, but it will include either using iframes or similiar to make it look like that.

More about it here:
http://weblogs.asp.net/bleroy/archive/2004/10/21/245826.aspx

Umbracian Personal blog: Objects.dk
garybronson
Posted: Tuesday, August 22, 2006 6:49:31 PM
Rank: Aficionado

Joined: 7/20/2006
Posts: 107
Woops! I guess i underestimated this part of my project big time. Unfortunately, messy or not, i'm gonna have to make it work for at least the shopping cart anyway. If you have any tips, i would sure appreciate them right about now.

I found some references but they didn't seem to work but i guess i'm not sure where to place the code exactly.

Code:

   <%@ Page Language="vb" AutoEventWireup="false"%>
   <html>
   <body>
        <%           
          Response.WriteFile ("Yourfile.inc")
        %>
   </body>
   </html>


and this explanation didn't yield any results yet

Code:

at the top of each include file put
<%@ Control Language="VB" EnableViewState="False" %>

and save them with .ascx extension

then in your main file put Register directives at the top of the page:
<%@ Register TagPrefix="UserControl1" TagName="Top" Src="top.ascx" %>
<%@ Register TagPrefix="UserControl2" TagName="Reset" Src="reset.ascx" %>
<%@ Register TagPrefix="UserControl3" TagName="OpenPage" Src="openpage.ascx" %>
<%@ Register TagPrefix="UserControl4" TagName="Conns" Src="openconns.ascx" %>

and between the <body> tags put

<body>
    <UserControl1:Top runat="server" />

    <UserControl2:Reset runat="server" />
    <UserControl3:OpenPage runat="server" />
    <UserControl4:Conns runat="server" />

  </body>

Hay
Posted: Wednesday, August 23, 2006 1:40:51 PM
Rank: Devotee

Joined: 8/2/2006
Posts: 47
Why not use the Umbraco Ecommerce package?
garybronson
Posted: Wednesday, August 23, 2006 3:02:26 PM
Rank: Aficionado

Joined: 7/20/2006
Posts: 107
I would have loved to use it but it's not ready for prime time yet and would involve another investment in time and money to make it ready. If it's not ready to use with multiple credit card processors (or at least ours) then it's not ready. We already have an investment in the one we have now and it works well. So i will look for a short term solution like using iframes and add it to my list of changes for the future which may be the ecommerce package.

GaryB
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.