ASP.NET Podcast

ASP.NET Podcast is geared towards the Microsoft .NET Framework and ASP.NET.
The podcast is run by Wally McClure, David Penton, and Paul Glavich.
Welcome to ASP.NET Podcast Sign in | Join | Help
in Search

ASP.NET Podcast

The ASP.NET Podcast features, technical talks, interviews, news, reviews, and Wallyisms. Wallace B. (Wally) McClure, David Penton, and Paul Glavich are your hosts. We talk about ASP.NET, AJAX, Performance, Databases, WCF, Silverlight, Cloud Computing, Windows Azure, and whatever else we decide to talk about.

ASP.NET Podcast Show #93 - ASP.NET ListView in Orcas Beta 1 - Video


Download WMV

Download MP4

Show Notes:

  • ASP.NET ListView.
  • ListView as a Grid.
  • ListView as a Container of data.

Source Code:

ASPX Page:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ListView.aspx.cs" Inherits="ListView" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<head runat="server">
    <title>ListView Page</title>
    <form id="form1" runat="server">
    <asp:ListView ID="ListView1" runat="server" ItemContainerID="tblData">
        <table border="1">
            <tbody runat="server" id="tblData"></tbody>
        <td><%# Eval("Name") %></td>
    <asp:ListView ID="ListView2" runat="server" ItemContainerID="ddlSelect">
        <select ID="ddlS" name="ddlS">
            <asp:PlaceHolder ID="ddlSelect" runat="server"></asp:PlaceHolder>
        <option><%# Eval("Name") %></option>

Code Behind .cs file:

protected void Page_Load(object sender, EventArgs e)
    DataTable dtData = new DataTable();
    DataRow drData;
    dtData.Columns.Add( "Name", System.Type.GetType("System.String"));
    drData = dtData.NewRow();
    drData["Name"] = "Wally McClure";
    drData = dtData.NewRow();
    drData["Name"] = "Paul Glavich - my trusty sidekick";
    ListView1.DataSource = dtData;
    ListView2.DataSource = dtData;

Published Wednesday, May 23, 2007 10:00 AM by admin
Anonymous comments are disabled

This Blog


Powered by Community Server, by Telligent Systems