Solved

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

Posted on 2011-09-21
3
212 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
ID: 36577139
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
ID: 36577186
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
ID: 36577618
Thanks for the help.
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Import Data from Multiple Text Files in Excel 12 60
C# LINQ ForEach() question 6 54
VB.NET 2008 Winforms Signing 13 31
Import MySQL data into MS Access using VB.Net interface 5 29
In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

856 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