Hello,
I was wondering if it was good practice to retrieve data via the code behind and pass it to my reports textboxes. I would create some properties in the report class that would allow me to pass it a business object. This business object would contain data needed on the report and via the code behind I can reference the textbox objects for e.g. this.textbox25.Value = obj.FirstName.
This would allow me to avoid adding more SQLDatasources to the report. Would this practice be considered ok.
Thanks,
Kerry
I was wondering if it was good practice to retrieve data via the code behind and pass it to my reports textboxes. I would create some properties in the report class that would allow me to pass it a business object. This business object would contain data needed on the report and via the code behind I can reference the textbox objects for e.g. this.textbox25.Value = obj.FirstName.
This would allow me to avoid adding more SQLDatasources to the report. Would this practice be considered ok.
Thanks,
Kerry