<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>遍历浏览XML数据信息</title>
    <style type="text/css">
        .style1
        {
            font-family: 华文中宋;
            font-size: x-large;
            color: #800080;
            font-weight: bold;
        }
    </style>
<script type="text/javascript">
  function movenext()
  {
    x=XMLFile.recordset;
    if (x.absoluteposition < x.recordcount)
       {
         x.movenext();
       }
   }
 function moveprevious()
  {
    x=XMLFile.recordset;
    if (x.absoluteposition > 1)
     {
        x.moveprevious();
     }
   }
</script>
</head>
<body>
<xml src="XMLFile.xml" id="XMLFile"></xml>



  
    
    <table style="width:350px;" align="center">
        <tr>
            <td align="center" colspan="2" valign="baseline" class="style1">
                遍历浏览XML数据信息<br />
            </td>
        </tr>
        <tr>
            <td align="center">
                供应商号：</td>
            <td>
                <span datasrc=#XMLFile datafld="供应商号" ></td>
        </tr>
        <tr>
            <td align="center">
                供应商名：</td>
            <td>
                <span datasrc=#XMLFile datafld="供应商名" ></td>
        </tr>
        <tr>
            <td align="center">
                城&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 市：</td>
            <td>
                <span datasrc=#XMLFile datafld="城市" ></td>
        </tr>
        <tr>
            <td align="center">
                联系方式：</td>
            <td>
                <span datasrc=#XMLFile datafld="联系方式" ></td>
        </tr>
        <tr>
            <td align="center">
                电子邮件：</td>
            <td>
                <span datasrc=#XMLFile datafld="电子邮件" ></td>
        </tr>
        <tr>
            <td align="center" colspan="2">
                <br />
                <input id="Button1" type="button" value="   上一条   "  onclick="moveprevious()"/>&nbsp;&nbsp;&nbsp;&nbsp;
                <input id="Button2" type="button" value="   下一条   "  onclick="movenext()"  /></td>
        </tr>
    </table>
    
</body>
</html>
