已经在win2000系统下安装好iisv5.0,mdac v2.1,.net framework sdk.然后按照参考书中的示例将源码通过notepad输入到计算机中。保存后,用ie浏览器打开,只能看到html部分定义的内容,script部分的内容无法显示!!!
请高手指点,谢谢!!!
源码如下:
<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>
In WebServerLand the time is currently:
<asp:label id="time" runat="server" />
</body>
</html>我的机器怎么都显示不出实时的时间!!
请高手指点,谢谢!!!
源码如下:
<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>
In WebServerLand the time is currently:
<asp:label id="time" runat="server" />
</body>
</html>我的机器怎么都显示不出实时的时间!!
解决方案 »
- 把一个单用户的博客 改成 多用户的博客 需要用到什么技术呢?
- SQL2005连接数据库
- 结构体数组
- 在线等待---DropDownList 和 javascript
- 能否在web页面上用ftp上传大文件,最好有例子
- <%=ConfigurationSettings.appSettings("留言簿名称")%>
- ASP.NET用ajax出问题了啊
- 各位高手指教:莫非是。NET的BUG,高手请进。(关于DATATABLE)
- 数据表中content字段数据〉8000个字符用什么数据类型?[ms sql2000][在线等]
- 基于form验证,在web.config中怎么写?
- 为什么同样的javascript代码在asp里可以,在aspx里不可以呢?
- DataGrid编辑问题
文件扩展名是aspx吗?
是先安装的IIS再安装的.NET Framework吗?
aspnet_regiis -i