VB.Net, VB Commenter, Comment Tags and NDOC

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I am using the following comment tag to display code samples in my help
document. <code> </code>

The problem is all I see is a gray bar and no code sample in my help file.
Has anybody done this successfully in VB.NET?

Thanks,

Chris
 
Here is the comment tags that are not working:

'''
-----------------------------------------------------------------------------
''' Project : RowSelectorColumn
''' Class : Mine.WebControls.RowSelectorColumn
'''
'''
-----------------------------------------------------------------------------
''' <summary>
''' A <see cref="DataGridColumn"/> which shows a checkbox in each row to
signal the selection of that row.
''' </summary>
''' <example> This example shows the use of RowSelectorColumn in a simple
<see cref="DataGrid"/>
''' <code>
''' <![CDATA[
''' <%@ Register TagPrefix="mine" Namespace="Mine.WebControls"
Assembly="Mine.WebControls.RowSelectorColumn" %>
''' <form id="Form1" runat="server">
''' <h3>DataGrid Example</h3>
''' <asp:datagrid id="ItemsGrid" runat="server" BorderColor="black"
BorderWidth="1" CellPadding="3"
''' AutoGenerateColumns="true">
''' <HeaderStyle BackColor="darkblue" forecolor="white"></HeaderStyle>
''' <Columns>
''' <mine:RowSelectorColumn
ChildrenCheckBoxID="FirstColSelectorColumnSelector"
''' SelectAllLabelID="SelectAllLabel" SelectAllLabelText="Approve All"
''' SelectAllCheckBoxID="FirstColSelectorColumnAllSelector"
AllowSelectAll="True"
''' SelectionMode="Multiple" />
''' </Columns>
''' </asp:datagrid><asp:button id="Button1" onclick="ShowSelections"
runat="server" text="Show Selections"></asp:button><br>
''' <asp:label id="Message" runat="server"></asp:label>
''' </form>
''' ]]>
''' </code>
''' </example>
'''
-----------------------------------------------------------------------------
 
Doh, I couldn't get CDATA to work for me, so I tried the XML escape character
< and > and it works like a charm.
 
Back
Top