Solved

Literal content

Posted on 2010-09-02
2
955 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
2 Comments
 
LVL 4

Accepted Solution

by:
dschauhan82 earned 500 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

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 a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

803 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