Solved

Literal content

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
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…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

863 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now