Solved

ASP.net VB - Server Error in '/' Application.

Posted on 2011-09-21
3
209 Views
Last Modified: 2012-05-12
I'm having trouble adding a hyperlink tag to my document. Currently I'm getting a server error which is below. My code is attached, could someone please try to help me figure out what I'm doing wrong. Thanks.

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: The server tag is not well formed.

Source Error:

Line 59: <asp:TemplateField HeaderText="Document" >
Line 60:      <ItemTemplate>
Line 61: <asp:HyperLink  
Line 62: text="<%# Eval("doc_loc") %>"  
Line 63: navigateurl="<%# Eval("doc_loc") %>" target="_blank" runat="server" />

Source File: /admin_eenvelope_delete.aspx    Line: 61
0
Comment
Question by:elliottbenzle
  • 2
3 Comments
 
LVL 7

Accepted Solution

by:
JosephEricDavis earned 500 total points
Comment Utility
When you are using server side includes like that you need to use single tick marks instead of full double quotes to surround the attribute values...

For instance,

text='<%# Eval("doc_loc") %>'  

instead of

text="<%# Eval("doc_loc") %>"  
0
 
LVL 7

Expert Comment

by:JosephEricDavis
Comment Utility
Additionally there is generally a better way to do things than to use those ASP classic style server side include tags.  If this is a gridview control that you are utilizing you can manipulate the values of those controls from the code behind in the OnRowDataBound event.

For an example, take a look at this question...
http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/Q_27295135.html
0
 
LVL 4

Author Closing Comment

by:elliottbenzle
Comment Utility
Thanks for the help.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Crystal Report for VS2013 17 36
Tabcontrol Caption? 1 21
How can I use this extension method? 8 35
Asp.net mvc entity issue 6 18
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
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.
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…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

772 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

12 Experts available now in Live!

Get 1:1 Help Now