My first page

qxojxb

New Member
I just setup my server and Im trying to get the following code to run. <BR><BR><%@ Page Language="VB" %><BR><script runat="server"><BR> Sub Page_Load(Sender As Object, E As EventArgs)<BR> HelloWorld.InnerText = "Hello World!"<BR> 'HelloWorld.InnerText = HelloWorld.Page<BR><BR> If Request.QueryString("visible") = "false" Then<BR> HelloWorld.Visible = False<BR> Else<BR> HelloWorld.Visible = True<BR> End If<BR><BR> ' .TagName lets you read or change the name of<BR> ' the HTML tag. It would currently return p,<BR> ' but if we change it, the server control<BR> ' will change the resulting HTML. Try this:<BR> 'HelloWorld.TagName = "strong"<BR> End Sub<BR></script><BR><BR><html><BR><head><BR><title>ASP.NET Hello World</title><BR></head><BR><body bgcolor="#FFFFFF"><BR><BR><p id="HelloWorld" runat="server"></p><BR><BR><p><BR><a href=http://aspmessageboard.com/archive/index.php/"helloworld.aspx?visible=true">Make Visible</a><BR><a href="helloworld.aspx?visible=false">Make Invisible</a><BR></p><BR><BR></body><BR></html><BR><BR>I dont get a 404 error, just a blank page. when I view source, I get the following:<BR><BR><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><BR><HTML><HEAD><BR><META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD><BR><BODY></BODY></HTML><BR><BR>I also tried this on brinkster and got the same thing. The file was saved as helloworld.aspx<BR><BR>any suggestions?EOM
 
Back
Top