Ramco Ramco

Ramco Ramco

  • 442
  • 3.4k
  • 528.5k

Error-Object reference is required for non static field method

May 17 2023 8:31 AM

Hi

   On hdfBookId.Value , hdfMobile i am getting above error

public static void getPopUp()
        {

                    BALBooks bALBooks = new BALBooks();
                    BALStudents bALStudents = new BALStudents();
                    StudentDetail Result = bALStudents.GetStudentDetailByLoginID(bALStudents.GetStudentIDByMobile(hdfMobile.Value));


                    BindData(Convert.ToInt32(hdfBookId.Value), Result.LoginCode);

        }

Thanks


Answers (4)