Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Wrox Announcements and Feedback > All Other Wrox Books
|
All Other Wrox Books Do you have a question about a Wrox book that isn't listed anywhere on p2p.wrox.com or where the forum is locked? Here's a forum to post questions about any other Wrox book so that other readers or one of the authors can help you with your questions. IF YOU ARE LOOKING FOR CODE DO NOT ASK "Where can I find the code for this book?" That question is answered here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the All Other Wrox Books section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old February 26th, 2004, 10:17 AM
Registered User
 
Join Date: Feb 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default ASP.NET Using VB.NET Chapt 3 Code error?

I am currently reading back through Beginning ASP.NET using VB.NET to clarify some bits and have come across a bit of a problem in the third chapter which I remember was a problem the first time I read the book.
At the end of chapter 3, which covers using server controls like check boxes and dropdown lists ect, there is a "try it" section that combines a number of the controls. However, this code throws up an error.
The form part of the code for the holidaypage.aspx file starts with <form action="holidayresponsepage.aspx" method="post">. This is so the results are passed to another page, the "holidayresponsepage.aspx". The first asp line is "Name:<asp:textbox id="FullName" runat="server" />"
All the other asp stuff is in this format. The form is eventually closed with </form>
When you run this in the browser I get the message "Control 'FullName' of type 'TextBox' must be placed inside a form tag with runat=server"
I have downloaded the code for this book and the code for this section is the same as mine and has the same problem.
If I remove this part of the code I get the same message but relates to the next <asp:.... /> control.
Has anyone come across this and if so what do I need to do to fix it?
Any help is much appreciated.
Chris.
  #2 (permalink)  
Old February 26th, 2004, 10:46 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

I think the book was written against the beta of the .NET framework. If I am not mistaken, early .NET betas supported pages that submitted to another page, instead of posting back to itself. However, as you found out, this is no longer supported (but again will be in future versions of ASP.NET).

Search this forum for "holidayresponse". You'll see a couple of posts dealing with this topic, and some work arounds.

Cheers,

Imar


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





Similar Threads
Thread Thread Starter Forum Replies Last Post
asp.net 2.0 (VB) error try it out ch 5 pg 160 rdixon2005 BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 0 January 10th, 2008 02:37 PM
what ASP.NET 2.0 in VB code book is best apro ASP.NET 2.0 Basics 8 December 22nd, 2007 12:40 PM
Can'T find code to Beginning Asp.net using VB.NET darruler All Other Wrox Books 1 August 12th, 2004 05:04 PM
Help 'beginning asp.net using vb.net' source code jkmf Wrox Book Feedback 1 January 18th, 2004 08:09 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.