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