troubleshooting Question

email form asp.net BC30451 not declared

Avatar of Tania_Farmer
Tania_Farmer asked on
.NET ProgrammingASP.NET
39 Comments1 Solution804 ViewsLast Modified:
Hi,
I am trying to set up a small booking form with System.Net.Mail.  I am getting the following error:

Compiler Error Message: BC30451: Name 'txtsenderChecklist' is not declared.

MailBody = "Message:" & txtsenderMessage.Text & vbCrLf & vbCrLf
MailBody = "Which Courses? " & txtsenderChecklist.SelectedItem.Text & vbCrLf & vbCrLf
MailBody = "Contact Information:" &  txtsenderName.Text & vbnewline & txtsenderEmail.Text  & vbCrLf


I have a checklistbox with the various courses listed:
    <p>Which course(s) are you interested in?</p>
    <asp:Repeater ID="RepeaterBookingForm" DataSourceID="XmlSourceBooking" runat="server">
      <ItemTemplate>
        <p> <%# XPath ("@longName") %></p>
        <asp:CheckBoxList  id="txtsenderChecklist" runat="server"
  DataSource='<%# XPathSelect("course/@name") %> '
  DataTextField="value"
  DataValueField="value"
  AppendDataBoundItems="True" > </asp:CheckBoxList >
      </ItemTemplate>
     </asp:Repeater>

Any help is greatly appreciated.
Cheers
Tania
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 39 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 39 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros