Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Compiler Error Message: CS1010: Newline in constant

Compiler Error Message: CS1010: Newline in constant

Scheduled Pinned Locked Moved ASP.NET
helpcsharpasp-netdocker
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sanju0276
    wrote on last edited by
    #1

    Hi, I am using a DataList Control using ASP.NET 2.0... I am getting the following error... NEWLINE IN CONSTANT..... I do not know what's wrong, can anyone help...........Here is the code. Thanks

    <%#DataBinder.Eval(Container.DataItem, "summary") %>  
    <%# DataBinder.Eval(Container.DataItem, "title")%>
    <%#DataBinder.Eval(Container.DataItem, "rating")%>
    <%# DataBinder.Eval(Container.DataItem, "reviewer") %>

    Sanjeev

    C 1 Reply Last reply
    0
    • S sanju0276

      Hi, I am using a DataList Control using ASP.NET 2.0... I am getting the following error... NEWLINE IN CONSTANT..... I do not know what's wrong, can anyone help...........Here is the code. Thanks

      <%#DataBinder.Eval(Container.DataItem, "summary") %>  
      <%# DataBinder.Eval(Container.DataItem, "title")%>
      <%#DataBinder.Eval(Container.DataItem, "rating")%>
      <%# DataBinder.Eval(Container.DataItem, "reviewer") %>

      Sanjeev

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      erm - you have a newline in a constant ? :P I'd expect it to mean a set of quotes is not matching up, but I can't see it.

      sanju0276 wrote:

      "review.aspx?reviewId={0})

      Got it "review.aspx?reviewId={0}")

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

      S 1 Reply Last reply
      0
      • C Christian Graus

        erm - you have a newline in a constant ? :P I'd expect it to mean a set of quotes is not matching up, but I can't see it.

        sanju0276 wrote:

        "review.aspx?reviewId={0})

        Got it "review.aspx?reviewId={0}")

        Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

        S Offline
        S Offline
        sanju0276
        wrote on last edited by
        #3

        Thank you.....It worked......I had not seen that....

        Sanjeev

        C 1 Reply Last reply
        0
        • S sanju0276

          Thank you.....It worked......I had not seen that....

          Sanjeev

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          Took me 5 minutes, once I knew what to look for :-)

          Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

          G 1 Reply Last reply
          0
          • C Christian Graus

            Took me 5 minutes, once I knew what to look for :-)

            Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

            G Offline
            G Offline
            Guffa
            wrote on last edited by
            #5

            Christian Graus wrote:

            Took me 5 minutes, once I knew what to look for

            Counting the four minutes and fifty seconds for the page to load so that you could start looking? ;)

            --- b { font-weight: normal; }

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups