|
 |
aspx_beginners thread: not able to execute a aspx file.
Message #1 by "ajit goel" <ajitgoel@h...> on Tue, 19 Feb 2002 06:28:33
|
|
Hi Everyone;
I have a queer problem.
I have the following code as a .aspx file
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
<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>
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
However when I request the file in the browser,I do not see the time.
I have insatalled the QuickStart tutorials also.When I try and run it I
see the actual html file as text in the browser.
I had changed my password yesterday but I have now reset it back to the
original one.I am sure that this problem is related to this.The quickstart
tutorials were working fine before this.
What could possibly be the problem?.
Regards and Many Thanks;
Ajit Goel
Message #2 by Elissa Setarehshenas <elissasetareh@y...> on Tue, 19 Feb 2002 05:57:13 -0800 (PST)
|
|
Ajit,
The Page_Load Finction Header should always contain
the following 2 arguments
void Page_Load(Object sender, EventArgs e)
Elissa
--- ajit goel <ajitgoel@h...> wrote:
> Hi Everyone;
>
> I have a queer problem.
>
> I have the following code as a .aspx file
>
>
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
>
> <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>
>
>
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
>
> However when I request the file in the browser,I do
> not see the time.
>
> I have insatalled the QuickStart tutorials also.When
> I try and run it I
> see the actual html file as text in the browser.
>
> I had changed my password yesterday but I have now
> reset it back to the
> original one.I am sure that this problem is related
> to this.The quickstart
> tutorials were working fine before this.
>
> What could possibly be the problem?.
>
> Regards and Many Thanks;
>
> Ajit Goel
$subst('Email.Unsub').
__________________________________________________
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com
Message #3 by "Brian Fairholm" <bfairholm@n...> on Tue, 19 Feb 2002 13:20:30 -0800
|
|
Ajit,
To have the Page_Load event triggered, I believe you would need to have
AutoEventWireup="true" in your Page directive.
Brian
aspx_beginners@p... writes:
>Hi Everyone;
>
>I have a queer problem.
>
>I have the following code as a .aspx file
>
>$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
>
><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>
>
>$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
>
>However when I request the file in the browser,I do not see the time.
>
>I have insatalled the QuickStart tutorials also.When I try and run it I
>see the actual html file as text in the browser.
>
>I had changed my password yesterday but I have now reset it back to the
>original one.I am sure that this problem is related to this.The
>quickstart
>tutorials were working fine before this.
>
>What could possibly be the problem?.
>
>Regards and Many Thanks;
>
>Ajit Goel
|
|
 |