473,387 Members | 1,641 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

hello world (asp.net) problem (syntax error) help needed :(

Hi folks...I've just installed asp.net framework and asp.net sdk and I've
cut and pasted a file from the web to test that it works.

The problem is that I get this error message which says:

Line: 3
Char: 9
Error: Expected ';'
Code: 0
URL: Http://localhost/helloworld5.aspx

Anyway this is what I tried. http://www.asp101.com/lessons/firstpage.asp

I know it must be a really basic syntax error but wtf; I just copy and
pasted this code which really really should be correct. I also am working on
one of my intro pracs and it also returned the same error so what's going
on?

Any help would be greatly appreciated.

The code I used is shown below:

<%@ Page Language="VB" %>
<script runat="server">
Sub Page_Load(Sender As Object, E As EventArgs)
HelloWorld.Text = "Hello World!"
End Sub
</script>

<html>
<head>
<title>ASP.NET Hello World</title>
</head>
<body bgcolor="#FFFFFF">

<p><asp:label id="HelloWorld" runat="server" /></p>

</body>
</html>
Jul 19 '05 #1
2 2333
Hi mate, the .NET newsgroups have 'dotnet' in them. You'll get better
mileage asking your question there.

Cheers,

Alan

"Dr DOOM" <bl**@blah.com> wrote in message
news:3f***********************@news.optusnet.com.a u...
Hi folks...I've just installed asp.net framework and asp.net sdk and I've
cut and pasted a file from the web to test that it works.

The problem is that I get this error message which says:

Line: 3
Char: 9
Error: Expected ';'
Code: 0
URL: Http://localhost/helloworld5.aspx

Anyway this is what I tried. http://www.asp101.com/lessons/firstpage.asp

I know it must be a really basic syntax error but wtf; I just copy and
pasted this code which really really should be correct. I also am working on one of my intro pracs and it also returned the same error so what's going
on?

Any help would be greatly appreciated.

The code I used is shown below:

<%@ Page Language="VB" %>
<script runat="server">
Sub Page_Load(Sender As Object, E As EventArgs)
HelloWorld.Text = "Hello World!"
End Sub
</script>

<html>
<head>
<title>ASP.NET Hello World</title>
</head>
<body bgcolor="#FFFFFF">

<p><asp:label id="HelloWorld" runat="server" /></p>

</body>
</html>

Jul 19 '05 #2
Ohh ok Alan, I'll try there :)

Thanks :)


"Alan" <SP******************@inspire.net.nz> wrote in message
news:uo**************@TK2MSFTNGP09.phx.gbl...
Hi mate, the .NET newsgroups have 'dotnet' in them. You'll get better
mileage asking your question there.

Cheers,

Alan

"Dr DOOM" <bl**@blah.com> wrote in message
news:3f***********************@news.optusnet.com.a u...
Hi folks...I've just installed asp.net framework and asp.net sdk and I've cut and pasted a file from the web to test that it works.

The problem is that I get this error message which says:

Line: 3
Char: 9
Error: Expected ';'
Code: 0
URL: Http://localhost/helloworld5.aspx

Anyway this is what I tried. http://www.asp101.com/lessons/firstpage.asp

I know it must be a really basic syntax error but wtf; I just copy and
pasted this code which really really should be correct. I also am working
on
one of my intro pracs and it also returned the same error so what's

going on?

Any help would be greatly appreciated.

The code I used is shown below:

<%@ Page Language="VB" %>
<script runat="server">
Sub Page_Load(Sender As Object, E As EventArgs)
HelloWorld.Text = "Hello World!"
End Sub
</script>

<html>
<head>
<title>ASP.NET Hello World</title>
</head>
<body bgcolor="#FFFFFF">

<p><asp:label id="HelloWorld" runat="server" /></p>

</body>
</html>


Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: AIM | last post by:
Error in msvc in building inheritance.obj to build hello.pyd Hello, I am trying to build the boost 1.31.0 sample extension hello.cpp. I can not compile the file inheritance.cpp because the two...
9
by: Brian | last post by:
Greetings: I am trying to compile the following code via command line. It compiles just fine in visual studio 2002 v7 so i took looked at the properties and i got the following command line...
3
by: mscertified | last post by:
I just started working thru a book on ASP.NET and am trying to display their Hello World page. Below is the page. When I attempt to display it with IE, I get an error on line 23, 'runtime error,...
33
by: ankursinha | last post by:
Hi, Is it possible to write a C program that prints "Hello World" on screen without having a single semi-colon in the entire program? The extra constraint here is that u r not allowed to use...
42
by: Prashanth Badabagni | last post by:
Hi, Can any body tell me how to print "hello,world" with out using semicolon Thanks in advance .. Bye Prashanth Badabagni
1
by: Sean | last post by:
I can't do any of the ASP.NET samples as everytime I run the sample I get a parser error. This is the text. Server Error in '/Hello World' Application....
7
by: randy collins | last post by:
I've installed Visual Studio 2005 Beta from the MSDN cd dated Aug 2004, which installs the 2.0 framework and ASP.NET 2.0. I write a simple aspx page containing <HTML><BODY>Hello...
0
by: shamirza | last post by:
· What is view state and use of it? The current property settings of an ASP.NET page and those of any ASP.NET server controls contained within the page. ASP.NET can detect when a form is requested...
11
by: cj | last post by:
Perhaps someone knows how to do this. When I open a new ASP.NET web service application in VS 2008, it opens with a simple Hello World web service already written. I want to see this work. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.