topical media & game development

talk show tell print

mashup-amazon-04-04-01-HelloWorld-Default.aspx / aspx



  <%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" MasterPageFile="~/Main.master" %>
  
  <asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
  <h1>Default home page</h1>
  <p>Below is a simple gridview bound to a static data source. </p>
      <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
          DataSourceID="myXmlDataSource">
          <Columns>
              <asp:BoundField DataField="title" HeaderText="title" SortExpression="title" />
              <asp:BoundField DataField="album" HeaderText="album" SortExpression="album" />
          </Columns>
      </asp:GridView>
      <asp:XmlDataSource ID="myXmlDataSource" runat="server" DataFile="~/zeppelin.xml"
          XPath="songs/song"></asp:XmlDataSource>
      </asp:Content>
  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.