hi friend,
drop_pcode = pcode;
drop_fyyear = fyyear;
write these lines inside the class but not in any method
you declared these lines inside a protected method thats y its showing error
write these lines after the below statement
SqlConnection con= new SqlConnection();
try this.. u may get correct result...