jsp vs asp .net

C

Carlos Sanin

Hi,

I am in the process of 'translating' jsp pages into
ASP .Net. Does anyone know what is the equivalent
include directive from jsp to asp .Net?

Thanks,

Carlos.
 
S

Scott M.

Classic ASP took advantage of include directives like this:

<!-- #include file="relativePathToFile" -->

or

<!-- #include virtual="relativePathToFile" --> for when the file was in a
different virtual directory.

In .NET however, we now have User Controls which supercede include
directives and allow us to create page fragments and reuse them wherever we
like.
 
K

Kevin Spencer

Include directives in both ASP and JSP are used primarily for including
logic and Presentation code that is common to multiple pages. However, both
ASP and JSP are procedural in nature, and ASP.Net does not work in the same
way. It is object-oriented. It would be best to use object-oriented
practices when working with it.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
J

John Timney \(Microsoft MVP\)

While include in ASP.NET has been superceded by userControl, the closest
thing to a usercontrol would be a Taglib

Regards

John Timney
Microsoft Regional Director
Microsoft MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top