Another problem with passing variables from form to form
anyways , the datagrid gets filled when the pageC loads up . the problem is that when a user clicks on a button to perform an action that requires the information from the datagrid , what happens is that the button causes a postback which causes the pageLoad sub to perform and when it gets to the line that says :" sendingpage = CType(context.Handler, JobDetails) " it will throw an error saying that it cannot convert . So I added the "if not Ispostback " IF statement around that part of the line but then what happens is that my other functions cant get the values needed from the information that is retrieved by that line "sendingpage = Ctype(Context.handler, jobdetails) "
I basically need a way to keep the information that I get from one of the properties of sendingPage once it is converted the very first time. That way I can keep the if not ispostback around that line : "sendingpage = Ctype(Context.handler, jobdetails) " and avoid the "cant convert" problem.

