打印本文 打印本文 关闭窗口 关闭窗口
使用 ASP.NET Community Starter Kit建造网站
作者:武汉SEO闵涛  文章来源:敏韬网  点击数6105  更新时间:2009/4/23 10:44:10  文章录入:mintao  责任编辑:mintao
nbsp;                   Runat="Server" ID="Author1"
                           NAME="Author1" />
         on
         <community:DateCreated Runat="Server"
                                ID="Datecreated1"
                                NAME="Datecreated1" />
         <br>
         <br>
         <community:BriefDescription Runat="Server"
                                     ID="Introduction1"
                                     NAME="Introduction1" />
      </td>
   </tr>
   <tr>
      <td class="Faq_AnswerCell">
         <community:FaqAnswer Runat="Server"
                              ID="Answer1" NAME="Answer1" />
      </td>
   </tr>
   <tr>
      <td class="Faq_AnswerCell">
         <community:FaqReference Runat="server"
                                 ID="Reference1"
                                 Name="Reference1" />
      </td>
   </tr>
   <tr>
      <td class="Faq_BodyCell">
         <br>
         <community:Rating SubmitText="Rate Item"
                           Runat="Server" ID="Rating1"
                           NAME="Rating1" />
      </td>
   </tr>
</table>
 
<table width="100%" cellspacing="0" cellpadding="11">
   <tr>
      <td>
         <div class="Content">
            <community:Notify
               Text="Notify me when a new comment is posted"
               Runat="Server" ID="Notify1" NAME="Notify1" />
            <p>
               <community:Comments Runat="Server"
                                   ID="Comments1"
                                   NAME="Comments1" />
            <p>
               <community:FaqEditContent
                  CommentText="Add Your Comment"
                  EditText="Edit this FAQ"
                  DeleteText="Delete this FAQ"
                  Runat="Server" ID="Faqeditcontent1"
                  NAME="Faqeditcontent1" />
         </div>
      </td>
   </tr>
</table>

在这个界面中,我们使用了自己创建的Web控件(包括只对特定用户显示的FaqEditContent链接)。有了这些界面文件,构建新模块就只剩下最后一步了。

模块风格

在创建新界面和Web控件时,要明确你在代码中放置的CSS名称。在模块中对界面有新的要求时我们要修改这些CSS文件。由于CSK中不提供默认的CSS设置,所以你需要对每个模块进行定义。

系统整合

现在,你可以启动和测试新的模块。运行的结果就像下面的图形:

总结

在CSK中创建新的模块需要与已有的架构进行交互,所以首先对CSK的整体架构进行了解。这篇文章对CSK的架构做了介绍,并详细介绍如何增加一个自定义的新模块,以及实现过程中所需要遵循的编程模式和命名风格。

上一页  [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]  ...  下一页 >> 

打印本文 打印本文 关闭窗口 关闭窗口