GridView がクリック可能になるように、誰かが次のコードを親切に変更していただければ幸いです。問題は、問題のコードが Windows アプリケーションでは DataGridView の CellMouseClick イベントの下で完全に機能することですが、Web アプリケーションではそのようなイベントがないため機能しません。では、どのイベントでクリック可能にできるのでしょうか?
    Try
        dr = Nothing
        Dim str As String
        str = GridView1.SelectedValue(0).Value
        cmd = New SqlCommand("Select* from ProgramDetails.Subjects where SubjectCode='" & str & "'", cn)
        dr = cmd.ExecuteReader
        While (dr.Read)
            txtIdNumber.Text = dr(0)
            txtSubjectCode.Text = dr(1)
            txtSubjectName.Text = dr(2)
            If dr(3) = "Core" Then
                rbnCore.Checked = True
            Else
                rbnElective.Checked = True
            End If
            txtUserId.Text = dr(4)
            txtPassword.Text = dr(5)
        End While
        dr.Close()
        btnSave.Enabled = False
    Catch ex As Exception
    End Try