Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: ASP.NET Website Programming Problem-Design-Solution
This is the forum to discuss the Wrox book ASP.NET Website Programming: Problem - Design - Solution, Visual Basic .NET Edition by Marco Bellinaso, Kevin Hoffman; ISBN: 9780764543869
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET Website Programming Problem-Design-Solution section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 6th, 2003, 09:19 PM
Authorized User
 
Join Date: Jun 2003
Location: New orleans, Louisiana, USA.
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default Mailing list module has error - HELP

<VB.Net version of the code>
I created a subscription form with the wizard, then I created a very no thrills html page to hold the form. I then attempted to subscribe using the form and received an error on the following page:

localhost/ThePhileVB/WebModules/MailingLists/Subscribe.aspx?ListId=14&FirstName=David&LastName= Smith&Email=smithD@cox.net&Submit1=Submit&Action=S ubscribe

Here is the error on the page


Control 'Header_SignOut' of type 'LinkButton' must be placed inside a form tag with runat=server.


The subscription was successful: I received an email, and the database was updated with the subscription, however the subscribe.aspx page came up with the above mentioned error.

I edited the siteheader and found nothing wrong with it.

Please help, I'm clueless
  #2 (permalink)  
Old September 7th, 2003, 04:55 AM
Imar's Avatar
Wrox Author
Points: 72,045, Level: 100
Points: 72,045, Level: 100 Points: 72,045, Level: 100 Points: 72,045, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,083
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Hi there,

It looks like your User Control 'Header_SignOut' is placed incorrectly on the host ASPX page. Each User Control must, as the error indicates, be placed between a <form runat="server"> tag and not before or after the form.

Can you post the code for Subscribe.aspx? It will be easier for us to see the problem.....

Imar




---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
  #3 (permalink)  
Old September 7th, 2003, 01:08 PM
Authorized User
 
Join Date: Jun 2003
Location: New orleans, Louisiana, USA.
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You are right IMAR, the form tags are missing from the code on the subscribe.aspx page.

The form seems to be an oversight by the developers of the book. The tags are missing in both the C# version and the VB Versions of the code.

Here is my subscribe.aspx page with the form tags.

<%@ Register
    TagPrefix="WroxUser" TagName="SiteHeader"
    Src="/ThePhileVB/Controls/User/SiteHeader.ascx"
%>
<%@ Register
    TagPrefix="WroxUser" TagName="SiteFooter"
    Src="/ThePhileVB/Controls/User/SiteFooter.ascx"
%>
<%@ Register
    TagPrefix="Wrox"
    Namespace="Wrox.ThePhile.Web.Controls.Server"
    Assembly="Wrox.ThePhile"
%>
<%@ Page
    language="vb"
    Codebehind="Subscribe.aspx.vb"
    AutoEventWireup="false"
    Inherits="Wrox.WebModules.MailingLists.Web.Subscri be"
%>
<!doctype html public "-//w3c//dtd html 4.0 transitional//en" >
<html>
    <head>
        <title>MailingLists: Subscription</title>
        <meta name="code_language" content="Visual Basic 7.0">
        <link rel="stylesheet" href="../../Styles/ThePhile.css" />
        <link rel="stylesheet" href="../../Styles/Navigator.css" />
    </head>
    <body>
    <form id="subscribe" runat="server" method="post">
        <WroxUser:SiteHeader id="Header" runat="server" />
        <br/>
        <table width="100%" border="0" cellspacing="4" cellpadding="2">
            <tr>
                <td width="100%" valign="top">
                    <asp:Label id="Subject" runat="Server"
                        CssClass="SubscrSubject"
                        Visible="false" />
                    <br/>
                    <asp:Label id="Message" runat="Server"
                        CssClass="SubscrMessage"
                        Visible="false" />
                    <asp:Label id="EmailRequired" runat="server"
                        Text="The Email address is required"
                        Visible="false"
                        CssClass="Error" />
                </td>
                <td align="right" valign="top">
                    <Wrox:Navigator id="MenuNav" runat="server"
                        SourceFile="/ThePhileVB/Config/NavMenu.xml"
                        TransformFile="/ThePhileVB/Styles/NavMenu.xslt" />
                </td>
            </tr>
        </table>
        <WroxUser:SiteFooter id="Footer" runat="server" />
        </form> </body>
</html>[/blue

The page is working now but the Link to [blue]unsubscribe is not working, however this is a peace of cake to fix.

Thanks again IMAR
  #4 (permalink)  
Old September 8th, 2003, 12:09 PM
Imar's Avatar
Wrox Author
Points: 72,045, Level: 100
Points: 72,045, Level: 100 Points: 72,045, Level: 100 Points: 72,045, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,083
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Right, just noticed that you edited your message. I was about to write an answer, but I see it's not necessary anymore.

Glad it works now.

BTW, you may want to send this to Tech Support, so it can be added to the Errata section of the book: http://www.wrox.com/contact/techsupport.shtml


Cheers,

Imar

---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
About Mailing List ssomchai BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 0 May 5th, 2008 10:05 PM
Mailing List Carriemh Beginning PHP 2 September 2nd, 2006 07:17 AM
Add Mailing List Problem USADarts BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 August 11th, 2004 10:19 PM
Mailing List app has more errors - Help drfunkie BOOK: ASP.NET Website Programming Problem-Design-Solution 1 September 7th, 2003 10:14 PM
mailing list using php dungey PHP How-To 1 June 4th, 2003 02:50 PM



All times are GMT -4. The time now is 11:20 AM.


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