The code you requested is below. I assume you had the code since it was part of the book you authored. I am not trying to give you a hard time so lighten up with the comments. I just want to know why the code will not execute properly. Thanks for taking the time to take a look. I have altered nothing but the Web.config for the connection string.
--------------------------- First 20 lines of MaterPage ------
<%@ Master Language="
VB" CodeFile="MasterPage.Master.
vb" Inherits="MasterPage" %>
<%@ Register Src="Controls/Header.ascx" TagName="Header" TagPrefix="uc" %>
<%@ Register Src="Controls/Navigation.ascx" TagName="Navigation" TagPrefix="uc" %>
<%@ Register Src="Controls/Footer.ascx" TagName="Footer" TagPrefix="uc" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="HeadArea" runat="server">
</head>
<body>
<form id="form1" runat="server">
<div id="allpages">
<div id="header">
<uc:Header ID="header1" runat="server" />
</div>
<div id="nav">
<uc:Navigation ID="nav1" runat="server" />
</div>
<div id="maincontent">
<asp:ContentPlaceHolder ID="main" runat="server">
</asp:ContentPlaceHolder>
</div>
</div>
<div id="footer">
<uc:Footer ID="Footer1" runat="server" />
</div>
</form>
</body>
</html>
------------------ First 20 lines of Default Page --------
<%@ Page Language="
VB" MasterPageFile="../MasterPage.master" AutoEventWireup="false" CodeFile="Default.aspx.
vb" Inherits="_Default" %>
<%@ Register Src="../Controls/currentsurvey.ascx" TagName="currentsurvey" TagPrefix="uc1" %>
<asp:Content ID="main1" ContentPlaceHolderID="main" Runat="Server">
<br />
<h2>Welcome!</h2><br />
<p>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. In consequat. Cras eu
purus. Nulla arcu metus, lacinia eget, pretium id, interdum sed, mauris. Phasellus
tortor odio, tempus vitae, tristique quis, placerat quis, felis. Etiam at nunc sit
amet purus pellentesque tincidunt. Ut at eros quis massa euismod consequat.
Pellentesque ac neque vel est viverra dictum. Sed eget pede sed ipsum posuere ultrices.
</p>
<p>
Sed massa. Pellentesque habitant morbi tristique senectus et netus et malesuada
fames ac turpis egestas. Quisque vulputate, est sit amet bibendum mollis,
pede enim hendrerit urna, quis adipiscing arcu velit eu nulla. In hac habitasse
platea dictumst.
</p>
<center><uc1:currentsurvey ID="Currentsurvey1" runat="server" /></center>
<br />
<br />
<br />
</asp:Content>
----------------- Webconfig ----------------------------
<?xml version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
\Windows\Microsoft.Net\Framework\v2.x\Config
-->
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<appSettings>
<add key="EmailFrom" value="
[email protected]" />
<add key="EmailTo" value="
[email protected]" />
<add key="PageTitle" value="Wrox Survey Engine" />
<!--
<add key="CurrentTheme" value="CleanBlue" />
-->
<add key="CurrentTheme" value="CleanRed" />
</appSettings>
<connectionStrings>
<add name="ConnectionString" connectionString="Data Source=SQLB1.webcontrolcenter.com;Initial Catalog=survey.mdf;Integrated Security=True;User Instance=TrueUser ID=autolib;Password=bad9rock" providerName="System.Data.SqlClient"/>
<add name="LocalSqlServer" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspn etdb.mdf;User Instance=true" />
</connectionStrings>
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
Visual Basic options:
Set strict="true" to disallow all data type conversions
where data loss can occur.
Set explicit="true" to force declaration of all variables.
-->
<roleManager enabled="true" />
<compilation debug="true" strict="false" explicit="true"/>
<pages>
<namespaces>
<clear/>
<add namespace="System"/>
<add namespace="System.Collections"/>
<add namespace="System.Collections.Specialized"/>
<add namespace="System.Configuration"/>
<add namespace="System.Text"/>
<add namespace="System.Text.RegularExpressions"/>
<add namespace="System.Web"/>
<add namespace="System.Web.Caching"/>
<add namespace="System.Web.SessionState"/>
<add namespace="System.Web.Security"/>
<add namespace="System.Web.Profile"/>
<add namespace="System.Web.UI"/>
<add namespace="System.Web.UI.WebControls"/>
<add namespace="System.Web.UI.WebControls.WebParts"/>
<add namespace="System.Web.UI.HtmlControls"/>
</namespaces>
</pages>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Forms" />
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
<customErrors mode="Off">
</customErrors>
</system.web>
</configuration>