Posted on: 11/12/2014 8:54:09 AM | Views : 405

hi 
I get this error "Object reference not set to an instance of an object" so frequently in this specific code line, 
If Request.QueryString("Type") IsNot Nothing And (Request.QueryString("Type") = 7 Or Request.QueryString("Type") = 14) And (CType(GV_EmpInfo.Rows(0).FindControl("lblAddress"), Label).Text.ToString() = String.Empty Or CType(GV_EmpInfo.Rows(0).FindControl("lblAddress"), Label).Text.ToString() = "") Then the code used to be
If Request.QueryString("Type") IsNot Nothing And (Request.QueryString("Type") = 7 Or Request.QueryString("Type") = 14) And (CType(GV_EmpInfo.Rows(0).FindControl("lblAddress"), Label).Text = String.Empty Or CType(GV_EmpInfo.Rows(0).FindControl("lblAddress"), Label).Text = "") Then and I corrected it to be as ...

Go to the complete details ...