就比如果这个: 运行后好像 Message.Text = "You last accessed this page at: " + DateTime.Now; 这句就根本没有执行一样,看不到结果,但没有出错 这些都是我在http://211.83.110.76/quickstart/aspplus/上边原样COPY下来的<html> <script language="C#" runat="server"> void Page_Load(Object Src, EventArgs E) { Message.Text = "You last accessed this page at: " + DateTime.Now; } </script> <body> <h3><font face="Verdana">Manipulating Server Controls</font></h3> This sample demonstrates how to manipulate the <asp:label> server control within the Page_Load event to output the current time. <p> <hr> <asp:label id="Message" font-size="24" font-bold="true" runat=server/> </body> </html>
运行后好像
Message.Text = "You last accessed this page at: " + DateTime.Now;
这句就根本没有执行一样,看不到结果,但没有出错
这些都是我在http://211.83.110.76/quickstart/aspplus/上边原样COPY下来的<html>
<script language="C#" runat="server">
void Page_Load(Object Src, EventArgs E) {
Message.Text = "You last accessed this page at: " + DateTime.Now;
}
</script>
<body>
<h3><font face="Verdana">Manipulating Server Controls</font></h3>
This sample demonstrates how to manipulate the <asp:label> server control within
the Page_Load event to output the current time.
<p>
<hr>
<asp:label id="Message" font-size="24" font-bold="true" runat=server/>
</body>
</html>
C:\WINNT\Microsoft.NET\Framework\v1.0.3705\aspnet_regiis.exe -r
我刚才也运行了,但还是没有用的
谢谢了,好像问题给解决了