Wrox Home  
Search P2P Archive for: Go

  Return to Index  

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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If you can't get it figured out you might try
uninstalling/reinstalling everything.&nbsp; The framework configures IIS to run .aspx files when it is installed,
I&nbsp;encountered the exact problem you are having&nbsp;and didn't get it working correctly until I uninstalled .Net, the
framework and IIS then reinstalled IIS, the framework, .Net.&nbsp;&nbsp; After that it worked fine.&nbsp; </P>
<P>Scott d.<BR></P></DIV>
<DIV></DIV>
<DIV></DIV>&gt;From: "Jordan, Andy" <ANDY.JORDAN@G...>
<DIV></DIV>&gt;Reply-To: "aspx_beginners" <ASPX_BEGINNERS@P...>
<DIV></DIV>&gt;To: "aspx_beginners" <ASPX_BEGINNERS@P...>
<DIV></DIV>&gt;Subject: [aspx_beginners] RE: Help! 
<DIV></DIV>&gt;Date: Thu, 11 Apr 2002 12:45:03 +0100 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Hi Matt, 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;If you have named your file .htm or .html rather than .aspx you would get 
<DIV></DIV>&gt;the problem you describe. 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Andy 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;-----Original Message----- 
<DIV></DIV>&gt;From: m.murray@s... [mailto:m.murray@s...] 
<DIV></DIV>&gt;Sent: 11 April 2002 13:21 
<DIV></DIV>&gt;To: aspx_beginners 
<DIV></DIV>&gt;Subject: [aspx_beginners] Help! 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Help! 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;I don't know what the problem is, but asp.net isn't working properly. 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;I have installed the .Net framework version 1.0.3705 &amp; the .Net SDK. I am 
<DIV></DIV>&gt;running Win2K. IIS is running fine. 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;My code is 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;
<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>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<H1>Welcome</H1>
<DIV></DIV>&gt; In WebServerLand the time is currently: 
<DIV></DIV>&gt;<?xml:namespace prefix = asp /><asp:label id=time runat="server"></asp:label> 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;The output is... 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Welcome! 
<DIV></DIV>&gt;In webserverland the time is currently: 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;The time isn't displayed! Help!!! 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Thanks in advance. 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Matt 
<DIV></DIV>&gt;--- 
<DIV></DIV>&gt;
<DIV></DIV>&gt;
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;--- 
<DIV></DIV>&gt;
<DIV></DIV>&gt;
<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/

  Return to Index