View Single Post
  #1 (permalink)  
Old May 24th, 2006, 06:55 AM
bcr212 bcr212 is offline
Authorized User
 
Join Date: May 2006
Location: , , United Kingdom.
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to bcr212
Default Page 228 TIO 5 Fixtures.aspx [VB]

The greyed code seems incorrect, at least it doesnt work for me.
Code that does work for me is as follows :

<%@ Page Language="VB" MasterPageFile="~/site.master" AutoEventWireup="false" CodeFile="Fixtures.aspx.vb" Inherits="Fixtures" title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
    Pick a date<br />
    <br />
    <br />
    <asp:ListBox ID="ListBox1" runat="server"
    DataSource="<%# ListOfMonths %>"
    >
    </asp:ListBox>

    <asp:SqlDataSource ID="SqlDataSource1" runat="server"
    ConnectionString="<%$ ConnectionStrings:WroxUnitedConnectionString3 %>"
        SelectCommand="SELECT * FROM [Fixtures]">
        </asp:SqlDataSource>

</asp:Content>