can't get a W3 schools example running

P

PJ6

OK, what kind of file(s) do I put this in to get it to work?

Oh, if it matters, I'm stuck with VS.NET 2002 at the moment.

Paul

<script runat="server">
Sub Page_Load
link1.HRef="http://www.w3schools.com"
End Sub
</script>
<html>
<body>
<form runat="server">
<a id="link1" runat="server">Visit W3Schools!</a>
</form>
</body>
</html>
 
G

Grant Merwitz

That would need to go in an ASPX file.
It will also need the page directive at the top
<%@ Page Language="VB" %>

It will also need to be running through a web server like IIS (ofcourse
having the .NET framework installed which is included with Visual Studio)
Attached is the page you need.

Is this what you wanted?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top