Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

classic asp w/ asp.net

Status
Not open for further replies.

jjmendo

Programmer
Feb 7, 2005
7
US
I need to update an application that was written in classic asp. Due to time concerns I can't update the entire application right now, but users need some functionality change in a couple of the pages. Would I be able to create these pages in ASP.net. Would the application allow both asp.net and classic asp pages. Thank you.
 
Yes. Both will run fine in the same virtual.
 
Thank you for the quick reply. Would there be issues when transferring information between the old and new pages. I haven't developed in classic asp, does it support querystrings, storing server session info. Two scenerios,

1. classic asp transferring data to asp.net pages
2. asp.net transferring data to classic asp pages

Thank you.
 
You shouldn't have any problem using querystrings or session objects. As you probably know ASP.NET pages are designed to post to themselves. To fake a post to another page you would do a Server.Transfer() but I can't say if it's going to work going from ASP.NET to classic .ASP. I've never tried it but I don't think that Posting form data from a classic .asp page to a ASP.NET page is going to fly either. As long as you keep in simple (querystrings,session state) you should be ok. If you try some of the stuff like posting form data and you're able to make it work, please post back to this thread with your results. I'd like to know. Thanks.
 
Also you can share session information between the asp and .net application. Check out the following link for some more info:


----------------------------------------------------------------------

Need help finding an answer?

Try the search facilty ( or read FAQ222-2244 on how to get better results.
 
Posting form data will work between ASP & ASP.NET. Posting data is really part of the http world, and is completely separate from ASP or ASP.NET.

As Veep pointed out, though, ASP.NET pages want very badly to post to themselves, so you need to work up something custom to make them post to different page. MetaBuilders has a nice control for just that (
ASP & ASP.NET will (technically speaking) play nicely together. However, if you continue to build ASP.NET on top of an existing clASP implementation, you will wind up with one big kludge of an application.

The only reason to EVER do this would be time constraints, and by its very nature, that puts your architecture decisions at risk of being rushed. Plus, you're building on top of an architecture that didn't even allow you to make good architecture decisions (clASP). All this is a recipe for a less-than-spectacular application.

Just a word of warning. Personally, I would never do it again. If it was a requirement of the job, then I would pass on the job.

-paul

penny.gif
penny.gif

The answer to getting answered -- faq855-2992
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top