Wrox Programmer Forums
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics 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 October 18th, 2004, 02:35 PM
Registered User
Join Date: Oct 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jdelpay
Default Webmatrix chapter 3

in the image button control when trying to run the code from the tryout,
I am getting the following error: Object reference not set to an instance of an object. I checked the code and it matches what's in the book. I even downloaded from the internet the code and copy it. is there anything else I should check ? I can not figure out what is the problem
her is the code for the button
Sub ImageButton1_Click(sender As Object, e As ImageClickEventArgs)
      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
        Label1.Text = "Using plain format for mail. Sending:<p />" & Message
      End If
    End Sub

Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP.NET using Webmatrix yashvanjani ASP.NET 2.0 Basics 1 July 1st, 2006 04:28 PM
Crystal Report in WebMatrix sacred21 Crystal Reports 0 September 28th, 2004 08:25 PM
Dreamweaver and webmatrix paggy Dreamweaver (all versions) 0 March 10th, 2004 03:30 AM

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