Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 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
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 18th, 2004, 02:35 PM
Registered User
 
Join Date: Oct 2004
Location: Los angeles, , .
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
      Else
        Label1.Text = "Using plain format for mail. Sending:<p />" & Message
      End If
    End Sub

 


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



All times are GMT -4. The time now is 05:20 AM.


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