views:

93

answers:

5

I have a client that currently has a shopping cart written in ASP that he wants to keep using. We are looking at upgrading the rest of the site to DotNetNuke which is based on ASP.Net.

Does anyone have any guidance on how to use asp pages in an asp.net application? IFrames? I did a little ASP just before dotnet came out, so I"m not that familiar with ASP.

A: 

You would be much better off using a single ASP.NET solution.

There is a DNN shopping cart module available from here. There is supposed to be a community edition. [I haven't used it, so can't say how good it is]

Mitch Wheat
sorry I was writing my retort as an answer, you absolutely can
DevelopingChris
I'm no jon skeet, so I have to focus on getting an answer in
DevelopingChris
updated my answer. Thanks for the correction
Mitch Wheat
although I completely agree, if its possible the 100% solution is best.
DevelopingChris
This is what I would like to do. However, I prefer to use CataLook from DnnSoft. For those not familiar with it, it is one of the great buys in software. It is a fully featured shopping cart in it's 5 major release, that is fully skinable so you can make it look like what ever you want.
photo_tom
+3  A: 

You can combine them pretty easily, you will just need to have the asp have its own global.asa and session timing. As long as your authentication logic is simple, you can write it in both, or consume it as a service from the asp pages.

The main concerns are shared state amongst pages. IFrames are viable options, but hard to get to look natural.

I'm currently doing this in an application that is half converted, its 170 aspx pages, and 210 asp pages.

That said, the context switching of maintaining both parts, is painful. So try and get it rewritten, quickly. On MVC its fairly trivial to have the logic flow like asp.

DevelopingChris
Combining ASP and ASP.NET sounds like a nightmare waiting to happen ;)
Mitch Wheat
I certainly didn't recommend doing it, its painful, but it does work. As do horse and buggy.
DevelopingChris
Horse and buggy is fine, as long as you have something handy to clear up the poop! ;)
Mitch Wheat
+1  A: 

You can mix the two, but I don't think you'll be able to do things like share state between them unless you cater for this with a third party provider. They'll behave more like two "seperate" sites.

One other thing worth mentioning is that if you are provisioning a new web server for the mix, and planning to pull in the old ASP code, is that ASP is not enabled default on the more recent versions of IIS.

Rob Levine
+1  A: 

You can't use ASP pages in an ASP.NET application.

You can have an ASP application and an ASP.NET application in the same web site, but they are still two different applications. They work side by side, basically unaware of each other.

You can have the pages communicating with each other, and even use iframes to seamingly mix them in the same page, but communication is not trivial as the web applications can't communicate directly. You can communicate between them on the client side, or through a common backend database (or any other indirect way that you can think of...).

Guffa
A: 

Most asp is going to valid as asp.net. You may be able to rename your .asp pages to .aspx and get 80-90% of the old code working under asp.net. Then fix anything that's broken and slowly migrate more and more of the old code to proper asp.net.

EfficionDave