Error in ASP.NET 2.0 script processing?

Discussion in 'ASP .Net' started by Paul Devenney, Nov 29, 2005.

  1. I have the following section of code inside my aspx page

    <link rel="stylesheet" type="text/css"
    href="/Web/Css/<%=GetStyleSheet()%>.css" />

    This code rendered find in ASP.NET 1.1, and

    <link rel="stylesheet" <%=GetStyleSheet()%> type="text/css"
    href="/Web/Css/test.css" />

    and

    <title><%=GetStyleSheet()%></title>

    all render as expected. The offending item renders as

    <link rel="stylesheet" type="text/css"
    href="/WaterstonsWeb/Css/&lt;%=GetStyleSheet()%>.css" />

    is this a bug in .NET 2?

    cheers,

    Paul
     
    Paul Devenney, Nov 29, 2005
    #1
    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. Luke
    Replies:
    2
    Views:
    22,014
  2. Hubert Hung-Hsien Chang
    Replies:
    2
    Views:
    540
    Michael Foord
    Sep 17, 2004
  3. =?Utf-8?B?TG93bGFuZGVy?=
    Replies:
    0
    Views:
    391
    =?Utf-8?B?TG93bGFuZGVy?=
    Mar 27, 2007
  4. Luke
    Replies:
    3
    Views:
    303
  5. Ted
    Replies:
    0
    Views:
    106
Loading...

Share This Page