Solved

Literal content

Posted on 2010-09-02
2
966 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

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

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

Suggested Solutions

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

828 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