Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 14th, 2006, 01:59 PM
qs qs is offline
Registered User
 
Join Date: Jun 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default iis didn't run function

I have a simple question: My iis didn't run the function. here is my test code.
script language="c#" runat="server">
void Page_Load()
{

  time.Text=Hour(Now) & ":" & Minute(Now) & ":" & Second(Now)
}
</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>

What I am trying to do is get the current date and time from server.

Here is the output:
Welcome
In WebServerLand the time is currently:

There is no date and time returned.

Any input is highly appriciate!

 
Old June 14th, 2006, 02:47 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Why not just do this?

time.text = Now.ToLongTimeString;

"The one language all programmers understand is profanity."





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to open IIS console from "Start-Run" menu jayaraj123 ASP.NET 2.0 Professional 16 June 27th, 2012 08:43 AM
How to run asp pages in IIS femina ASP.NET 1.0 and 1.1 Basics 20 February 22nd, 2006 12:31 PM
Can I run Apache and IIS on the same PC? thegooner BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 9 June 15th, 2005 05:45 AM
Function to run an executable Bob Hansen Access VBA 1 June 25th, 2004 02:10 AM
run function from UserControl melvik C# 11 August 6th, 2003 08:30 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.