写了一段代码:
××××××××××××××××××××××××××××××××××××××
Dim Conn As New SqlConnection(System.Configuration.ConfigurationSettings.AppSettings("ConnectionString"))
        Conn.Open()
        Dim Cmd As New SqlCommand("SELECT * FROM ANCMT", Conn)
        Dim Dr As SqlDataReader
        Dr = Cmd.ExecuteReader()
        Label1.Text = Dr.Item("Name")
        Conn.Close()
××××××××××××××××××××××××××××××××××××××但是提示错误如下:
××××××××××××××××××××××××××××××××××××××
Invalid attempt to read when no data is present. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.InvalidOperationException: Invalid attempt to read when no data is present.Source Error: 
Line 31:         Dim Dr As SqlDataReader
Line 32:         Dr = Cmd.ExecuteReader()
Line 33:         Label1.Text = Dr.Item("Name")
Line 34:         Conn.Close()
Line 35:     End Sub
××××××××××××××××××××××××××××××××××××××把"Dr.Item"改为"Dr.GetName"就可以用。数据库里面手动添加了东西还是不行。
把Dr.Item("Name")的参数换成0、1这些都不行。搞了两天了。
希望大家说说是怎么回事。
麻烦了。