using Include directive in ASP .NET

Discussion in 'ASP .Net' started by Farooq Khan, Oct 28, 2003.

  1. Farooq Khan

    Farooq Khan Guest

    can i use include directive in ASP.NET as in classic ASP and how (if it's
    any different from the classis ASP)? and how can i design/use Server control
    if i want to replace include file?

    Best Regards,
    Farooq Khan
    Farooq Khan, Oct 28, 2003
    #1
    1. Advertising

  2. Although you can use server-side includes in ASP.Net, they are procedural in
    nature, and should generally be avoided. In ASP.Net, it is generally better
    to use use User Controls, which are sort of "page-lets" that you can put
    into a WebForm, or into another Control in much the same way as a
    server-side include, although, unlike an SSI, you can conditionally include
    User Controls.

    --
    HTH,

    Kevin Spencer
    Microsoft MVP
    ..Net Developer
    http://www.takempis.com
    Big Things are made up of
    Lots of Little Things.

    "Farooq Khan" <> wrote in message
    news:...
    > can i use include directive in ASP.NET as in classic ASP and how (if it's
    > any different from the classis ASP)? and how can i design/use Server

    control
    > if i want to replace include file?
    >
    > Best Regards,
    > Farooq Khan
    >
    >
    Kevin Spencer, Oct 28, 2003
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?bGl0dGxlY2hhcnZh?=

    Is there an '<!--#include...' directive in .NET?

    =?Utf-8?B?bGl0dGxlY2hhcnZh?=, May 11, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    1,732
    Hans Kesting
    May 12, 2004
  2. Franz
    Replies:
    5
    Views:
    2,357
    Franz
    Jan 31, 2006
  3. Andreas Bogenberger
    Replies:
    3
    Views:
    882
    Andreas Bogenberger
    Feb 22, 2008
  4. Falk Köppe
    Replies:
    4
    Views:
    2,414
    Wojtek
    May 19, 2009
  5. *** HAWK

    Problem using 'include directive' in ASP

    *** HAWK, Nov 21, 2003, in forum: ASP General
    Replies:
    4
    Views:
    143
    *** HAWK
    Nov 23, 2003
Loading...

Share This Page