I've been looking at parent child related lists in SharePoint 2010.
Simple example would have the parents display form having a related web part with the children on it.
User would then add a new child and the child's parent ID needs to updated automatically. I've looked a numerous javascript based solutions to do this, but I've noticed a few issues especially when the child list goes over more than one page, when you add a new child it gets added to the wrong parent.
Is there a way to achieve this using event receivers ?
e.g. when the child item is adding change the parent ID to the value of the current parent.
Thing is how do you get the parent ID from the parent list in to the child item event receiver ?