p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 (http://p2p.wrox.com/forumdisplay.php?f=228)
-   -   Page 228 TIO 5 Fixtures.aspx [VB] (http://p2p.wrox.com/showthread.php?t=42950)

bcr212 May 24th, 2006 06:55 AM

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>


All times are GMT -4. The time now is 11:00 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.