newline in constant

Posted on 2009-02-24
Medium Priority
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
  • 2
LVL 16

Accepted Solution

burakiewicz earned 400 total points
ID: 23722249
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

ID: 23722256
this was the problem spot
LVL 26

Assisted Solution

by:Anurag Thakur
Anurag Thakur earned 200 total points
ID: 23722267
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")%>

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL several years ago, it seemed like now was a good time to update it for object-oriented PHP.  This article does that, replacing as much as possible the pr…
High user turnover can cause old/redundant user data to consume valuable space. UserResourceCleanup was developed to address this by automatically deleting user folders when the user account is deleted.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses

840 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