Results 1 to 3 of 3

Thread: problem with include directive

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2004
    Location
    india
    Posts
    95

    problem with include directive

    hi,

    im trying to include an ASP file (Header) which is written in VB code with ADO, in ASPX C#.

    The page is not included at top of the ASPX insetead its showing error.

    Is it possible to inlclude ASP_vb in ASPX_C# file?

  2. #2
    Addicted Member soluga's Avatar
    Join Date
    Dec 2005
    Location
    Manchester (Uk)
    Posts
    211

    Re: problem with include directive

    You should create a user control based on your old include file.
    Include files for ASP, user controls for ASP.Net.

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: problem with include directive

    A web user control (ASCX) can contain ASPX code (and is just like another ASP.NET page!). It acts as a control which you drag and drop and place anywhere you like on the ASPX page. Just like you did with .INCs.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width