You declare a DataSet at the top of your method, but you don't actually connect it with the database via the DataAdapter! Try adding the middle line:
da = New SqlDataAdapter("SELECT * FROM studentdetails where student_id= '" & txt_id.Text & "", myConn)
da.Fill(dset)
If dset.Tables(0).Rows.Count > 0 Then