Solved

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

Posted on 2011-09-21
3
213 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Vb.net threads keep increasing 2 49
Get month and date in a format 4 45
VB.Net creating Contact in Outlook 1 51
ASP.NET/VB: Convert Date and Time to YYYY-MM-DDTHH:MM:SS 3 32
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
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 …

756 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