Go Back   CodingForums.com > :: Server side development > ASP.NET

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-08-2005, 12:53 PM   PM User | #1
esthera
Senior Coder

 
Join Date: May 2004
Posts: 1,432
Thanks: 14
Thanked 0 Times in 0 Posts
esthera can only hope to improve
advice regarding asp.net and includes

i'm reposting as I posted in the asp forum but I think this is the correct place.

I have a asp.net small application that I needed to do in .net and could not do in asp.

the rest of my files on the server are all in asp and I want to include files (for headers and footers and other parts of the page) that are .asp files.

Can I do this?
Can I mix asp and asp.net or at least include asp files in an asp.net page.

How?
esthera is offline   Reply With Quote
Old 09-09-2005, 02:26 AM   PM User | #2
rrhodes
New Coder

 
Join Date: Aug 2005
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
rrhodes is an unknown quantity at this point
Yes, you can #include asp files into aspx pages, but I think you could run into trouble if you have asp server side code in those files. One, there is an "ASP Compatibility" page directive you can use in your ASPX pages that might help. Two, ASP and ASP.net use different Session mechanisms, so a session var in ASP may not be available in ASP.NET.

For Headers and Footers, I find creating ASP.NET "user controls" to be a better solution than includes. Once you master user controls, you will never need to use include files again.
__________________
Robert
Gee! Web Tools
Web Content Management / Internet Marketing modules including:
Page Editor - Calendar Manager - News Editor - Contact Organizer - Mail Wizard
rrhodes is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:50 PM.


Advertisement
Log in to turn off these ads.