View Single Post
  #3 (permalink)  
Old September 10th, 2003, 03:42 AM
aleahy aleahy is offline
Authorized User
 
Join Date: Jul 2003
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi

The code fails because there is no End Sub specified. Amend the code like so

<script runat="server" language="vb">
    Sub Page_Load()
    Message1.Text = " "
    Message2.Text = " "
    Message3.Text = " "

    if text1.Text <> " " Then
        Message1.Text = "You have entered in the following name: " + text1.Text
    end if


    if text2.Text <> " " Then
        message2.Text = "You have entered in the following address: " + text2.Text
    end if


    if text3.Text <> " " Then
        Message3.Text = "You have entered in the following password: " + text3.Text
    end if
End Sub <<<<---- NOTE THE END SUB

Hope this helps!