lab5.aspx

来自「《圣殿祭司的ASP.NET 2.0开发详解——使用C#》光盘内容.包含了书籍所含」· ASPX 代码 · 共 59 行

ASPX
59
字号
<%@ Page Language="C#" %>

<!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 id="Head1" runat="server">
    <title>Atlas Server Controls Lab</title>
    <link rel="stylesheet" type="text/css" href="site.css" />
</head>
<body>
  <form id="form1" runat="server">
  <div>
    <atlas:ScriptManager id="mgr1" runat="server" />
    
    <atlas:button runat="server" id="fillButton" text="Get URL List">
      <click>
        <actions>
          <atlas:invokeMethodAction target="dataSource1" method="select" />
        </actions>
      </click>
    </atlas:button>
    
    <atlas:dataSource runat="server" id="dataSource1" serviceUrl="~/DataService.asmx" />
    
    <atlas:ListView runat="server" id="listView1" itemtemplatecontrolid="templateItem">
    
      <bindings>
        <atlas:Binding DataContext="dataSource1" DataPath="data" Property="data" />
      </bindings>
      
      <LayoutTemplate>
        <ul runat="server" id="templateItemParent">
          <li runat="server" id="templateItem">
            <strong id="Strong1" runat="server">
                <atlas:label runat="server" id="nameLabel">
                  <bindings>
                    <atlas:binding DataPath="Name" Property="text" />
                  </bindings>
                </atlas:label>
            </strong>
            <br />
            <atlas:hyperlink runat="server" id="companyUrl" >
              <bindings>
                <atlas:binding DataPath="Description" Property="text" />
              </bindings>           
            </atlas:hyperlink>
          </li>
        </ul>
      </LayoutTemplate>
      
      <emptytemplate>No Data</emptytemplate>
    </atlas:ListView>
    
  </div>
  </form>
</body>
</html> 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?