When do you need @control directive

Discussion in 'ASP .Net' started by tshad, Nov 19, 2004.

  1. tshad

    tshad Guest

    I just started playing with User Controls and I found that some books have
    the @Control directives in them and some don't.

    Why is that?

    When do you have to have it?

    For example:

    I could have an ascx file that only has the following include statement in
    it and it work fne.

    <!-- #include file = ..\includes\StaffingHeaders.inc -->

    Tom
     
    tshad, Nov 19, 2004
    #1
    1. Advertising

  2. tshad

    clintonG Guest

    The @control directive is the equivalent of the #include directive.

    --
    <%= Clinton Gallagher, "Twice the Results -- Half the Cost"
    Architectural & e-Business Consulting -- Software Development
    NET
    URL http://www.metromilwaukee.com/clintongallagher/


    "tshad" <> wrote in message
    news:OhBS0$...
    > I just started playing with User Controls and I found that some books have
    > the @Control directives in them and some don't.
    >
    > Why is that?
    >
    > When do you have to have it?
    >
    > For example:
    >
    > I could have an ascx file that only has the following include statement in
    > it and it work fne.
    >
    > <!-- #include file = ..\includes\StaffingHeaders.inc -->
    >
    > Tom
    >
    >
     
    clintonG, Nov 20, 2004
    #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. Doris Cox
    Replies:
    0
    Views:
    562
    Doris Cox
    Dec 2, 2003
  2. Dennis
    Replies:
    0
    Views:
    706
    Dennis
    Dec 2, 2003
  3. Dennis
    Replies:
    0
    Views:
    463
    Dennis
    Dec 2, 2003
  4. pek
    Replies:
    0
    Views:
    1,238
  5. johannes falcone
    Replies:
    6
    Views:
    1,015
    johannes falcone
    May 16, 2013
Loading...

Share This Page