Solved

Literal content

Posted on 2010-09-02
2
933 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
Comment Utility
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
Comment Utility
Thanks for the help...
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

763 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

9 Experts available now in Live!

Get 1:1 Help Now