VB - lable.text wont show?

Hi ALL - For some reason the page wont show the lable.tex - its just blank here :

have i missed something out in the code?

Imports System.Net 
Imports System.IO 

Partial Class football_home
    Inherits System.Web.UI.Page

		Sub Page_Load(sender as Object, e as EventArgs)
		
			lblHTMLOutput.text = "heyho"

  End Sub
	
End Class

Open in new window

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="home.aspx.vb" Inherits="football_home" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
<h1>Screen Scrape </h1>
  <p>
  <asp:label id="lblHTMLOutput" runat="server" />
    </form>
</body>
</html>

Open in new window

runnerjp2005Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Éric MoreauConnect With a Mentor Senior .Net ConsultantCommented:
you are missing the Handles part!

Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
0
 
Carl TawnSystems and Integration DeveloperCommented:
Other than the lowercase "t" at the start of "Text" it looks ok. If you put a break point at the start of the Page_Load method, does it get hit?
0
 
runnerjp2005Author Commented:
Yup seems all ok to me but here it shows nothing - http://jarrattperkins.com/football/home.aspx
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
Carl TawnSystems and Integration DeveloperCommented:
You are also missing a closing </p> tag - although I don't imagine that would be causing it not to display properly.
0
 
runnerjp2005Author Commented:
nope that didnt fix it...i just dont get it lol
0
 
Carl TawnSystems and Integration DeveloperCommented:
If you put a break point in the code and check the value of the Text property immediately after you set it, does it show empty, or does it show the correct value?
0
 
runnerjp2005Author Commented:
I cant believe i kept missing that!
0
 
Jacques Bourgeois (James Burger)PresidentCommented:
Do not specify VB script when you ask a question dealing with .NET. They are very different things. This is like adding MS-DOS to a question about the new Windows 8 interface. Be more precise in what you are doing in .NET.

ASP.NET would have been a lot better choice, because it would have attracted more programmers who develop for the web.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.