Wrox Programmer Forums
|
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 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
 
Old February 8th, 2006, 07:14 PM
Registered User
 
Join Date: Feb 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default chkTour.checked problem

ERROR MESSAGE
Server Error in '/' Application.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: BC30456: 'Checked' is not a member of 'System.Web.UI.WebControls.CheckBoxList'.

Source Error:

Line 8: Dim Message As String
Line 9: Message = "Hello " & txtName.Text & "."
Line 10: If chkTour.Checked Then
Line 11: Message &= " We will send you details of the tour " & _
Line 12: "schedule for " & cboCountry.SelectedItem.Text


Source File: C:\BegWebMatrix\MailingList.aspx Line: 10
__________________________________________________ ________________

The code as I have entered following the book.

Sub Button1_Click(sender As Object, e As EventArgs)
Dim Message As String
Message = "Hello " & txtName.Text & "."
If chkTour.Checked Then
    Message &= " We will send you details of the tour " & _
        "schedule for " & cboCountry.SelectedItem.Text
End If
If radMail.SelectedItem.Value = "HTML Then
    Label1.Text = "Using HTML format for mail. Sending:p />" & Message
    Else
    Label1.Text = "Using plain format for mail. Sending:p />" & Message
    End If
End Sub
 
Old February 8th, 2006, 07:40 PM
Registered User
 
Join Date: Feb 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

found out after googling error message. I used a check box list instead of check box from web controls panel.
Gotta be careful which control i click on.





Similar Threads
Thread Thread Starter Forum Replies Last Post
checked list box iranp2pcsharp C# 2005 5 July 16th, 2007 11:45 PM
Checkbox checked all mateenmohd Javascript 1 January 2nd, 2007 06:19 AM
Checkbox checked? ninel ASP.NET 2.0 Professional 1 April 12th, 2006 10:50 PM
checking which checkbox checked MuthuAL Classic ASP Databases 5 February 1st, 2005 05:19 AM
allow only one checkbox to be checked! morpheus HTML Code Clinic 5 April 15th, 2004 10:59 AM





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