Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Wrox Announcements and Feedback > All Other Wrox Books
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 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
Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 26th, 2004, 10:17 AM
Registered User
 
Join Date: Feb 2004
Location: , , United Kingdom.
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
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 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.
Closed Thread


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
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



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


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