|
 |
aspx_beginners thread: Help!
Message #1 by m.murray@s... on Thu, 11 Apr 2002 12:21:08
|
|
Help!
I don't know what the problem is, but asp.net isn't working properly.
I have installed the .Net framework version 1.0.3705 & the .Net SDK. I am
running Win2K. IIS is running fine.
My code is
<script language="vb" runat="server">
Sub Page_Load()
time.text=Hour(Now) & ":" & Minute(Now) & ":" & Second(Now)
End Sub
</script>
<html>
<head><title>The Punctual Web Server</title></head>
<body>
<h1>Welcome</h1>
In WebServerLand the time is currently:
<asp:label id="time" runat="server" />
</body>
</html>
The output is...
Welcome!
In webserverland the time is currently:
The time isn't displayed! Help!!!
Thanks in advance.
Matt
Message #2 by "Jordan, Andy" <Andy.Jordan@g...> on Thu, 11 Apr 2002 12:45:03 +0100
|
|
Hi Matt,
If you have named your file .htm or .html rather than .aspx you would get
the problem you describe.
Andy
-----Original Message-----
From: m.murray@s... [mailto:m.murray@s...]
Sent: 11 April 2002 13:21
To: aspx_beginners
Subject: [aspx_beginners] Help!
Help!
I don't know what the problem is, but asp.net isn't working properly.
I have installed the .Net framework version 1.0.3705 & the .Net SDK. I am
running Win2K. IIS is running fine.
My code is
<script language="vb" runat="server">
Sub Page_Load()
time.text=Hour(Now) & ":" & Minute(Now) & ":" & Second(Now)
End Sub
</script>
<html>
<head><title>The Punctual Web Server</title></head>
<body>
<h1>Welcome</h1>
In WebServerLand the time is currently:
<asp:label id="time" runat="server" />
</body>
</html>
The output is...
Welcome!
In webserverland the time is currently:
The time isn't displayed! Help!!!
Thanks in advance.
Matt
Message #3 by "Scott Dietrick" <scottdietrick@h...> on Thu, 11 Apr 2002 08:21:25 -0400
|
|
<html><div style='background-color:'><DIV>
<P>Matt,</P>
<P> If you can't get it figured out you might try
uninstalling/reinstalling everything. The framework configures IIS to run .aspx files when it is installed,
I encountered the exact problem you are having and didn't get it working correctly until I uninstalled .Net, the
framework and IIS then reinstalled IIS, the framework, .Net. After that it worked fine. </P>
<P>Scott d.<BR></P></DIV>
<DIV></DIV>
<DIV></DIV>>From: "Jordan, Andy" <ANDY.JORDAN@G...>
<DIV></DIV>>Reply-To: "aspx_beginners" <ASPX_BEGINNERS@P...>
<DIV></DIV>>To: "aspx_beginners" <ASPX_BEGINNERS@P...>
<DIV></DIV>>Subject: [aspx_beginners] RE: Help!
<DIV></DIV>>Date: Thu, 11 Apr 2002 12:45:03 +0100
<DIV></DIV>>
<DIV></DIV>>Hi Matt,
<DIV></DIV>>
<DIV></DIV>>If you have named your file .htm or .html rather than .aspx you would get
<DIV></DIV>>the problem you describe.
<DIV></DIV>>
<DIV></DIV>>Andy
<DIV></DIV>>
<DIV></DIV>>-----Original Message-----
<DIV></DIV>>From: m.murray@s... [mailto:m.murray@s...]
<DIV></DIV>>Sent: 11 April 2002 13:21
<DIV></DIV>>To: aspx_beginners
<DIV></DIV>>Subject: [aspx_beginners] Help!
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>Help!
<DIV></DIV>>
<DIV></DIV>>I don't know what the problem is, but asp.net isn't working properly.
<DIV></DIV>>
<DIV></DIV>>I have installed the .Net framework version 1.0.3705 & the .Net SDK. I am
<DIV></DIV>>running Win2K. IIS is running fine.
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>My code is
<DIV></DIV>>
<DIV></DIV>>
<SCRIPT language=vb runat="server">
</DIV>>Sub Page_Load()
</DIV>>time.text=Hour(Now) & ":" & Minute(Now) & ":" & Second(Now)
</DIV>>End Sub
</DIV>></SCRIPT>
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>
<H1>Welcome</H1>
<DIV></DIV>> In WebServerLand the time is currently:
<DIV></DIV>><?xml:namespace prefix = asp /><asp:label id=time runat="server"></asp:label>
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>The output is...
<DIV></DIV>>
<DIV></DIV>>Welcome!
<DIV></DIV>>In webserverland the time is currently:
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>The time isn't displayed! Help!!!
<DIV></DIV>>
<DIV></DIV>>Thanks in advance.
<DIV></DIV>>
<DIV></DIV>>Matt
<DIV></DIV>>---
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>---
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV></div><br clear=all><hr>Chat with friends online, try MSN Messenger: <a
href='http://g.msn.com/1HM505401/12'>Click Here</a><br></html>
Message #4 by "Curtner, Lynn" <lynn.curtner@p...> on Thu, 11 Apr 2002 07:45:24 -0500
|
|
If your code is verbatim, you've got the case of time.Text wrong...
> ----------
> From: m.murray@s...[SMTP:m.murray@s...]
> Reply To: aspx_beginners
> Sent: Thursday, April 11, 2002 7:21 AM
> To: aspx_beginners
> Subject: [aspx_beginners] Help!
>
> Help!
>
> I don't know what the problem is, but asp.net isn't working properly.
>
> I have installed the .Net framework version 1.0.3705 & the .Net SDK. I am
> running Win2K. IIS is running fine.
>
>
> My code is
>
> <Xcript language="vb" runat="server">
> Sub Page_Load()
> time.text=Hour(Now) & ":" & Minute(Now) & ":" & Second(Now)
> End Sub
> </Xcript>
>
> <html>
> <head><title>The Punctual Web Server</title></head>
> <body>
> <h1>Welcome</h1>
> In WebServerLand the time is currently:
> <asp:label id="time" runat="server" />
> </body>
> </html>
>
>
> The output is...
>
> Welcome!
> In webserverland the time is currently:
>
>
> The time isn't displayed! Help!!!
>
> Thanks in advance.
>
> Matt
>
Message #5 by Elissa Setarehshenas <elissasetareh@y...> on Thu, 11 Apr 2002 10:07:33 -0700 (PDT)
|
|
Your problem is in Page_Load. It must always have
these 2 arguments
protected void Page_Load(Object sender, EventArgs e)
Elissa Setareh
--- m.murray@s... wrote:
> Help!
>
> I don't know what the problem is, but asp.net isn't
> working properly.
>
> I have installed the .Net framework version 1.0.3705
> & the .Net SDK. I am
> running Win2K. IIS is running fine.
>
>
> My code is
>
> <script language="vb" runat="server">
> Sub Page_Load()
> time.text=Hour(Now) & ":" & Minute(Now) & ":" &
> Second(Now)
> End Sub
> </script>
>
> <html>
> <head><title>The Punctual Web Server</title></head>
> <body>
> <h1>Welcome</h1>
> In WebServerLand the time is currently:
> <asp:label id="time" runat="server" />
> </body>
> </html>
>
>
> The output is...
>
> Welcome!
> In webserverland the time is currently:
>
>
> The time isn't displayed! Help!!!
>
> Thanks in advance.
>
> Matt
__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/
|
|
 |