?
Solved

Literal content

Posted on 2010-09-02
2
Medium Priority
?
983 Views
Last Modified: 2013-12-17
I receive the below error, how can I fix it?

Literal content ('<asp:buttonfield buttontype="Link"OnRowEditing="RowEditing" OnRowCommand="RowCommand" OnRowDataBound="RowDataBound" commandname="Edit" text="Edit" />') is not allowed within a 'System.Web.UI.WebControls.DataControlFieldCollection'.   at System.Web.UI.CollectionBuilder.AppendLiteralString(String s)
   at System.Web.UI.TemplateParser.ProcessLiteral()
<columns>
               <asp:buttonfield buttontype="Link" OnRowEditing="RowEditing" OnRowCommand="RowCommand" OnRowDataBound="RowDataBound" commandname="Edit" text="Edit" />
                          
               </columns>

Open in new window

0
Comment
Question by:PagodNaUtak
[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 Comments
 
LVL 4

Accepted Solution

by:
dschauhan82 earned 2000 total points
ID: 33593785
try this

<asp:HyperLinkField

HeaderText="WWW"


Text="Link"

DataNavigateUrlFields="webURL"

DataNavigateUrlFormatString="{0}"

target=_blank/>

------------------------------------
http://forums.asp.net/t/1033186.aspx
-------------------------------------------

Hope this help u.
0
 
LVL 8

Author Closing Comment

by:PagodNaUtak
ID: 33593813
Thanks for the help...
0

Featured Post

Application Discovery Service in AWS

In the era of the cloud, customers migrating away from their existing on-premise infrastructure. This requires lots of planning, strategies, and effort to identify their existing resources and determine how best to migrate.  Datacenter migrations happen in four phases -

Question has a verified solution.

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

This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Suggested Courses

762 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