BeanSoftware Logo
 

 
ASP.NET Database Search Control
 
 

 
 Home
    Shop
    Advertise
    Write For Us
    Affiliate
    Newsletter
    Contact

How To Place Comments Between ASP.NET Tags?

In classic HTML, you can use <!-- and --> to insert comments. However, if you try to do this inside for example GridView you will get a message Error creating control. To insert comments on right way, you need to use <%-- and --%>, like comment in example bellow:

<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False">
 <Columns>
 <%--  This is important column --%>
 <asp:ImageField DataImageUrlField="ImageFileName"</asp:ImageField>
 </Columns>
</asp:GridView>



Related articles:

1. Interoperating with Unmanaged Code - PInvoke
2. Implementing Validation Controls

FAQ toolbar: Submit FAQ  |  Tell A Friend  |  Add to favorites  |  Feedback



Copyright © 2002-2008 Bean Software. All rights reserved.