Wrox Programmer Forums
|
BOOK: ASP.NET Website Programming Problem-Design-Solution
This is the forum to discuss the Wrox book ASP.NET Website Programming: Problem - Design - Solution, Visual Basic .NET Edition by Marco Bellinaso, Kevin Hoffman; ISBN: 9780764543869
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET Website Programming Problem-Design-Solution section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 23rd, 2004, 03:12 PM
Authorized User
 
Join Date: Nov 2003
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to seanmayhew
Default Datagrid commenting

Is it possible to place code comments inside a datagrid? I keep getting this error: Literal content
Code:
 ('') is not allowed within a 'System.Web.UI.WebControls.DataGridColumnCollection'
When I try to run this page

Code:
<asp:TemplateColumn HeaderText="Name" SortExpression="Name">

<ItemTemplate>
<asp:Label runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Name") %>' ID="Name" />
</ItemTemplate>
                            <EditItemTemplate>
<asp:TextBox ID="EditName" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Name") %>' CssClass="TextBox" Width="150px" />
                                <asp:RequiredFieldValidator Id="ValidateEditName" runat="server" ControlToValidate="EditName" Display="dynamic">* Name is required</asp:RequiredFieldValidator>
                            </EditItemTemplate>
</asp:TemplateColumn>
Thanks in advance






Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom paging in Datagrid with datagrid page count madhusrp ASP.NET 1.0 and 1.1 Professional 12 June 2nd, 2008 01:15 PM
User COntrol Datagrid inside datagrid rodmcleay ASP.NET 1.0 and 1.1 Professional 3 April 14th, 2007 10:11 AM
Commenting Code TritonOps BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 2 March 1st, 2006 11:02 AM
Commenting large blocks of code goplayoutside VB.NET 2002/2003 Basics 2 April 21st, 2004 04:17 PM
ActionScript Code Commenting Ben Horne Flash (all versions) 1 December 9th, 2003 10:26 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.