Mobile ASP.Net Tutorial

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs"  Inherits="CallList" %>
<%@ Register TagPrefix="mobile" Namespace="System.Web.UI.MobileControls" Assembly="System.Web.Mobile" %>


    
      
        
          
            
                                                    AlternateFormat="{0} at {1}"
                            PhoneNumber='<%# Eval("Phone") %>'
                            Text='<%#Eval("CustomerID") %>' />
                    

          
        

      
    


File: Default.aspx.cs
using System;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
using System.Web;
using System.Web.Mobile;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.MobileControls;
using System.Web.UI.WebControls;
public partial class CallList : System.Web.UI.MobileControls.MobilePage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            DataSet data = new DataSet();
            SqlDataAdapter adapter = new SqlDataAdapter(
                "SELECT * FROM customers WHERE companyname LIKE 'A%'",
                ConfigurationManager.ConnectionStrings["NorthWind"].ConnectionString);
            adapter.Fill(data, "Customers");
            Session["Customers"] = data;
        }
        DataSet ds = new DataSet();
        ds = (DataSet)Session["Customers"];
        CustomerList.DataSource = ds.Tables[0];
        CustomerList.DataTextField = "companyname";
        CustomerList.DataBind();
    }
}