Wrox Home  
Search P2P Archive for: Go

  Return to Index  

ado_dotnet thread: Basic ASP.Net problem - Pl Help me


Message #1 by gsivakanthan@h... on Wed, 12 Feb 2003 17:46:21
Hi
I have installed Visual studio.net in my Pc, but when I run this piece of 
code first time I couldn?t get the correct out put. I am getting only html 
out put. I couldn?t get the time, When I click the view source I could see 
the server side code as well



This the code
<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>

Pl help me
Message #2 by "Ken Schaefer" <ken@a...> on Thu, 13 Feb 2003 13:58:40 +1100
At a command prompt type:
cd %WINDIR%\microsoft.net\framework\v1.0.3705

Then run:
aspnet_regiis -i

This will add the necessary mappings for .aspx (etc) pages to the necessary
dlls.

Cheers
Ken

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: <gsivakanthan@h...>
Subject: [ado_dotnet] Basic ASP.Net problem - Pl Help me


: Hi
: I have installed Visual studio.net in my Pc, but when I run this piece of
: code first time I couldn?t get the correct out put. I am getting only html
: out put. I couldn?t get the time, When I click the view source I could see
: the server side code as well
:
:
:
: This the code
: <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>

Message #3 by "Ted Nandakumar" <TedN@i...> on Thu, 13 Feb 2003 13:10:13 +0530
You need to add the folowing tags before u use server controls
<form runat=3D"server" id=3D"form1">



-----Original Message-----
From: gsivakanthan@h... [mailto:gsivakanthan@h...]
Sent: Wednesday, February 12, 2003 11:16 PM
To: ADO.NET
Subject: [ado_dotnet] Basic ASP.Net problem - Pl Help me


Hi
I have installed Visual studio.net in my Pc, but when I run this piece 
of
code first time I couldn't get the correct out put. I am getting only 
html
out put. I couldn't get the time, When I click the view source I could 
see
the server side code as well



This the code
<script language=3D"vb" runat=3D"server">
Sub Page_Load()
time.text=3DHour(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=3D"time" runat=3D"server" />
</body>
</html>

Pl help me
=3D=3D=3D
Fast Track ADO.NET with C# is a concise introduction to the concepts, 
techniques, and libraries that you will need in order to start using 
ADO.NET in your applications. The book covers DataSets and Typed 
DataSets, accessing data using DataReaders and DataAdaptors, the close 
relationship between ADO.NET and XML, how and where to use ADO.NET in 
your enterprise applications, and how to use Web Services and ADO.NET to 
easily pass data between applications.
http://www.wrox.com/books/1861007604.htm

  Return to Index