newline in constant

Posted on 2009-02-24
Last Modified: 2013-11-19

How do i get rid of the "new line in constant" error in:

<a style="color:#002D65;font-family:Verdana" href='<%#"Categorie.aspx?ca=" + DataBinder.Eval(Container.DataItem,"Parinte")+ "sel=" + DataBinder.Eval(Container.DataItem,"Id")"%>'>   <%#DataBinder.Eval(Container.DataItem, "Nume")%> </a>
Question by:radupopescu777
    LVL 16

    Accepted Solution

    you have an extra "
    use this
    <a style="color:#002D65;font-family:Verdana" href='<%#"Categorie.aspx?ca=" + DataBinder.Eval(Container.DataItem,"Parinte")+ "sel=" + DataBinder.Eval(Container.DataItem,"Id")%>'>   <%# DataBinder.Eval(Container.DataItem, "Nume")%> </a>
    LVL 16

    Expert Comment

    this was the problem spot
    LVL 26

    Assisted Solution

    by:Anurag Thakur
    try this
    <a style="color:#002D65;font-family:Verdana" href='<%#"Categorie.aspx?ca=" + DataBinder.Eval(Container.DataItem,"Parinte")+ "sel=" + DataBinder.Eval(Container.DataItem,"Id") %>'>
       <%#DataBinder.Eval(Container.DataItem, "Nume")%>

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Suggested Solutions

    Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
    Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
    The viewer will learn how to dynamically set the form action using jQuery.
    The viewer will learn how to count occurrences of each item in an array.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now