I have a FormView from which another user control is launched.
The FormView loads an “order” from the database.
The UserControl contains a form to insert line items for this order.
When inserting a line item, I need the order ID to associate the line items to the order.
But since the child control is a separate user control, the FormView is not visible and inaccessible. Does anyone know how I can go about getting the FormViews key value from a different user control?
Using a session or cookie is out of the question unfortunately.
Thanks
Kevin
Could you not simply have a property OrderId on the UserControl?
The FormView can set this property to the current order id.