Solved

ASP.NET Eval Server tag is not well formed

Posted on 2011-09-09
3
599 Views
Last Modified: 2012-05-12

what's wrong with this?

<asp:HyperLink ID="relatedLink" NavigateUrl="<%#  Eval("RelatedProjectID") %>" runat="server">

Getting this error: Parser Error Message: The server tag is not well formed.
0
Comment
Question by:conrad2010
  • 3
3 Comments
 
LVL 4

Expert Comment

by:Friman001
ID: 36512575
<asp:HyperLink ID="relatedLink" NavigateUrl="~/Test/Default.aspx?JobId="<%#  Eval("RelatedProjectID") %> runat="server">

You don't want quotes around the Eval portion.
0
 
LVL 4

Accepted Solution

by:
Friman001 earned 500 total points
ID: 36512589
<asp:HyperLink ID="relatedLink" NavigateUrl='<%#  Eval("RelatedProjectID") %>' runat="server">

Sorry, I was thinking wrong!!!  You want single quotes!
0
 
LVL 4

Expert Comment

by:Friman001
ID: 36512614
When you have quotes within quotes, you want to make the outside ones single quotes.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
localhost: This site can’t be reached  localhost refused to connect. 2 45
C# winforms programmitically move panels 6 27
.NET 2008 VB and C# 6 27
C# Gridview 1 28
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

813 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

18 Experts available now in Live!

Get 1:1 Help Now