asp.net初学者的一个问题,
我安装完了.netframework,vc7也完全安装了。也安装完了iis,环境路径也设置了。然后我用netplus写了一个小程序
<script language="c#" runat="server">
void Page_Load()
{
time.Text=DateTime.Now.Hour.ToString()+":"+DateTime.Now.Minute.ToString()+":"+DateTime.Now.Second.ToString();
}
</script>
<html>
<head><title>The Punctual Web Server</title></head>
<body>
<h1>Welcome</h1><br>
In WebseverLand ang the time is currently:
<asp:label id="time" runat="server"/>
</body>
</html>
可是显示总是没有时间,只是
Welcome
In WebseverLand ang the time is currently: 没有时间显示,这是怎么回事啊,
问题点数:20、回复次数:5Top
1 楼southdoor(南门)回复于 2003-11-02 17:48:44 得分 5
加入Timer控件.Top
2 楼rgbcn(奔向.net)回复于 2003-11-02 17:59:33 得分 5
DateTime date = System.DateTime.Now;
string day = date.DayOfWeek.ToString();
加SystemTop
3 楼sjc0(流浪者)回复于 2003-11-02 18:04:00 得分 5
给你试试
<td vAlign="center" noWrap align="right">nbsp; <font class="font2" color="#ffe4c4">当前系统时间:<%=DateTime.Now.Year%>年<%=DateTime.Now.Month%>月<%=DateTime.Now.Day%>日 </font></td>Top
4 楼Abac(~~)回复于 2003-11-02 18:06:48 得分 5
Welcome
In WebseverLand ang the time is currently: 17:58:23
我这里显示时间了啊,你用的是哪个版本的framework?Top
5 楼wujiangxu(dabang)回复于 2003-11-02 18:13:16 得分 0
楼上的,我的版本是v1.1.4322和v1.0.3705,你的显示时间了,说明还是我的配置问题了,你有么有什么特殊配置啊,Top




