页面部分
复制代码 代码如下:
点击按钮从服务器获取当前时间
<%--
后台代码
复制代码 代码如下:
protected void btn1_Click(object sender, EventArgs e)
{
txtTime.Text = DateTime.Now.ToString();
}