<b><%#Server.HtmlEncode(Eval("Caption").ToString())%></b><br /> produces an error but the IDE still

Discussion in 'ASP .Net' started by AAaron123, Aug 8, 2009.

  1. AAaron123

    AAaron123 Guest

    In the IDE both lines shown below are underlined and in the Error List they
    are indicated as having the error:

    "Expression expected"

    The first statement below shows up twice in the Error list.

    Not only that, since they are marked as error I'd expect the Ide would
    refuse to run but it does and this code appears to run OK!

    Got any idea what is going on?

    <b><%#Server.HtmlEncode(Eval("Caption").ToString())%></b><br />

    <%#Eval("Count")%>Photo(s)<asp:Label ID="Label1" runat="server" Text=" In
    The Albumn"></asp:Label><br />
     
    AAaron123, Aug 8, 2009
    #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. Replies:
    7
    Views:
    584
    =?ISO-8859-1?Q?G=F6ran_Andersson?=
    Jul 4, 2007
  2. Cal Who
    Replies:
    1
    Views:
    462
    Cal Who
    Jun 26, 2010
  3. Andreas.Bretl
    Replies:
    0
    Views:
    152
    Andreas.Bretl
    May 18, 2004
  4. MyndPhlyp
    Replies:
    3
    Views:
    491
    MyndPhlyp
    Oct 3, 2005
  5. Fergus McMenemie

    LibXML element->toString vs document->toString

    Fergus McMenemie, Jul 12, 2012, in forum: Perl Misc
    Replies:
    5
    Views:
    620
    Fergus McMenemie
    Jul 17, 2012
Loading...

Share This Page