[ASP.NET 2.0beta] master page & <head runat=server>

Discussion in 'ASP .Net' started by Lloyd Dupont, Sep 22, 2004.

  1. Lloyd Dupont

    Lloyd Dupont Guest

    I wonder what's the point of this runat=server (in the head tag)?
    because:
    1. if I remove it, it works just as well.
    2. if I let it, all my <% %> tag inside the head fail with some index out of
    range exception.
    Lloyd Dupont, Sep 22, 2004
    #1
    1. Advertising

  2. Lloyd Dupont

    GrantMagic Guest

    I haven't played with 2.0 at all, but in 1.1 i have never placed a
    runat=server in the Head tag

    "Lloyd Dupont" <> wrote in message
    news:OgHIJ%...
    >I wonder what's the point of this runat=server (in the head tag)?
    > because:
    > 1. if I remove it, it works just as well.
    > 2. if I let it, all my <% %> tag inside the head fail with some index out
    > of range exception.
    >
    GrantMagic, Sep 22, 2004
    #2
    1. Advertising

  3. Lloyd Dupont

    Lloyd Dupont Guest

    well, when you create a new master page with VS.NET, the newly created
    master page is like that....

    anyway I removed it and it works fine, I will change the template :)

    "GrantMagic" <> wrote in message
    news:...
    >I haven't played with 2.0 at all, but in 1.1 i have never placed a
    >runat=server in the Head tag
    >
    > "Lloyd Dupont" <> wrote in message
    > news:OgHIJ%...
    >>I wonder what's the point of this runat=server (in the head tag)?
    >> because:
    >> 1. if I remove it, it works just as well.
    >> 2. if I let it, all my <% %> tag inside the head fail with some index out
    >> of range exception.
    >>

    >
    >
    Lloyd Dupont, Sep 22, 2004
    #3
    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?VG9t?=

    DynamicHoverStyle Bug w/<head runat="server" />

    =?Utf-8?B?VG9t?=, Jun 22, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    457
    =?Utf-8?B?VG9t?=
    Jun 22, 2006
  2. Replies:
    0
    Views:
    238
  3. Christopher
    Replies:
    0
    Views:
    438
    Christopher
    Mar 22, 2008
  4. Christopher

    Disable head runat=server for some pages?

    Christopher, Mar 26, 2008, in forum: ASP .Net
    Replies:
    0
    Views:
    419
    Christopher
    Mar 26, 2008
  5. Scott M.

    <head runat="server">

    Scott M., Sep 5, 2008, in forum: ASP .Net
    Replies:
    22
    Views:
    3,072
    Göran Andersson
    Sep 8, 2008
Loading...

Share This Page