需要做成用户控件
显示、更新 xml中的数据
怎么实现?

解决方案 »

  1.   

    <?xml version="1.0" encoding="utf-8" ?>
    <Evaluations Name="Evaluations1">
      <Evaluation>
        <Name>选题</Name>
        <Weights>3</Weights>
        <Description>主要考察选题的学术价值或应用价值,对国内外研究状况的论述和评价。</Description>
        <Scores>
          <Score>10</Score>
          <Score>9</Score>
          <Score>8</Score>
          <Score>7</Score>
          <Score>6</Score>
          <Score>5</Score>
          <Score>4</Score>
          <Score>3</Score>
        </Scores>
      </Evaluation>
      <Evaluation>
        <Name>论证</Name>
        <Weights>5</Weights>
        <Description>主要考察研究思路、研究内容、重点难点、研究方法、基本观点和创新之处。</Description>
        <Scores>
          <Score>10</Score>
          <Score>9</Score>
          <Score>8</Score>
          <Score>7</Score>
          <Score>6</Score>
          <Score>5</Score>
          <Score>4</Score>
          <Score>3</Score>
        </Scores>
      </Evaluation>
      <Evaluation>
        <Name>研究基础</Name>
        <Weights>2</Weights>
        <Description>主要考察课题负责人的前期相关研究成果和主要参考文献。</Description>
        <Scores>
          <Score>10</Score>
          <Score>9</Score>
          <Score>8</Score>
          <Score>7</Score>
          <Score>6</Score>
          <Score>5</Score>
          <Score>4</Score>
          <Score>3</Score>
        </Scores>
      </Evaluation>
    </Evaluations>
      

  2.   

    xslt<?xml version="1.0" encoding="utf-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
        xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl"
    >
      <xsl:output method="html" indent="yes"/>
      
      <xsl:template match="/">
        <html>
          <body>
            <table cellspacing="3" cellpadding="8">
              <tr bgcolor="#AAAAAA">
                <td class="heading">
                  <strong>评价指标</strong>
                </td>
                <td class="heading">
                  <strong>权重</strong>
                </td>
                <td class="heading">
                  <strong>指标说明</strong>
                </td>
                <td class="heading">
                  <strong>专家评分</strong>
                </td>
              </tr>
              <xsl:for-each select="Evaluations/Evaluation">
                <tr>
                  <td>
                    <xsl:value-of select="Name"/>
                  </td>
                  <td>
                    <xsl:value-of select="Weights"/>
                  </td>
                  <td>
                    <xsl:value-of select="Description"/>
                  </td>
                  <xsl:for-each select="Scores/Score">
                    <td>
                      <xsl:apply-templates/>
                    </td>
                  </xsl:for-each>
                </tr>
              </xsl:for-each>
            </table>
          </body>
        </html>
      </xsl:template>
    </xsl:stylesheet>
      

  3.   

    这个不难,给个链接参考一下
    http://www.cnblogs.com/cfam/archive/2006/11/17/563441.html
      

  4.   

    http://msdn.microsoft.com/zh-cn/library/66f54faw(VS.80).aspx
      

  5.   

    http://msdn.microsoft.com/zh-cn/library/13ftcwy9(v=vs.100).aspx