第一个是在编写的时候遇到的.因为我打上这个控件的名字加.后没有关于这个控件的提示,我自己写完后在这句下有一条下划线,我把鼠标放在上面就提示未定义什么的.
第二个你指的没定义好是什么意思呢?我看了一下,名字什么的都对.
这是我的index.aspx.vb里的内容
    Dim startime, endtime, zxsj
    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        startime = Timer
    End Sub
    Private Sub Page_Unload(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Unload
        endtime = Timer
        zxsj = (endtime - startime) * 1000
        labtime.DataBind()
    End Sub
我是想计算一下从开始到结束所运行的时间
这是我的index.aspx里的相关内容:
<asp:Label id="labtime" text='<%#zxsj%>' runat="server"/>