模块有一个ascx文件。代码:<%@ Register TagPrefix="YR" TagName="Comment" Src="~/DesktopModules/YongRi - NewsArticles/Comment.ascx" %>
<%@ Register TagPrefix="YR" TagName="CommentEdit" Src="~/DesktopModules/YongRi - NewsArticles/CommentEdit.ascx" %>
<%@ Control Language="vb" AutoEventWireup="false" Codebehind="ArticleShow.ascx.vb" Inherits="YongRi.Modules.NewsArticles.ArticleShow" %>
<table id="tbArticle" width="100%" runat="server">
<tr>
<td align="center"><asp:Label ID="lblTitle" Runat="server" CssClass="YongRi_NewsArticles_Title"></asp:Label></td>
</tr>
<tr>
<td align="center" class="YongRi_NewsArticles_Info"><asp:Label ID="lblInfo" Runat="server" CssClass="Normal"></asp:Label></td>
</tr>
<tr>
<td height="300" valign="top"><asp:Label ID="lblContent" Runat="server" CssClass="Normal"></asp:Label></td>
</tr>
<tr>
<td align="right">
<asp:linkbutton id="cmdComment" runat="server" resourcekey="cmdComment" CssClass="CommandButton"
Text="Comment" BorderStyle="none" CausesValidation="False" />
<asp:linkbutton id="cmdReturn" runat="server" resourcekey="cmdReturn" CssClass="CommandButton" Text="Return"
BorderStyle="none" CausesValidation="False" />
</td>
</tr>
<tr>
<td>
<YR:Comment id="yrComment" runat="server"></YR:Comment>
<YR:CommentEdit id="yrCommentEdit" runat="server" Visible="False"></YR:CommentEdit>
</td>
</tr>
</table>
还有一个xml模板,代码:<?xml version="1.0" encoding="utf-8" ?>
<Root>
<Header>
<![CDATA[<table width="100%">]]>
</Header>
<Item>
<![CDATA[
<tr>
<td class="Normal">
<span style="color:red">[OnTop]</span>
<a href="[LinkUrl]" title="[Topic]" Target="[Target]">[Title]</a>
[NewFlag] <span style="color:red">[Hot]</span>
</td>
<td align="right" class="Normal" style="color:blue">[CreatedDate]</td>
</tr>
]]>
</Item>
<Footer>
<![CDATA[</table>]]>
</Footer>
</Root>