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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Include file asp classic vs asp.net 1

Status
Not open for further replies.

44nato44

Programmer
Dec 12, 2008
115
NL
I am new to asp.net and rebuilding a site of mine to asp.net from asp classic.

I have an include file with some asp classic code, when I include this file to my asp.net it writes the text in <% which it did not when the file was asp.

<%@ Page Language="vb" AutoEventWireup="false" %>
<%
Response.WriteFile ("header.aspx")
%>

Some people have any idea ?
 
You need to get an introductory book for ASP.NET
You are still coding in classic ASP style.
All code should be in the code-behind, not embedded in the page.
Include files no longer exist. You would use a UserControl instead of an include file.

There are many differences between ASP and ASP.NET. You will learn them as you go along, but a good book to start will help you transition faster.
 
cool thanks.. I have asp.net 4 from Sams Teach Yourself.. so I will look this up.

Cheers
 
Cool, I love the Sams books. They see to be the best to me. Please don't be afraid to post here with any questions.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top