princesszea
Technical User
Hi,
I'm using asp.net and I have my try catch is in a class in my DAL which returns a datatable to my user control. If my datatable does not get returned and an error is thrown in my try catch, what i need to happen is display the error message inside that particular user control instead. Not sure how to best achieve this. I was thinking of putting a label inside my user control but not sure how to pass the error message from my class in DAL to my user control.
Thanks
I'm using asp.net and I have my try catch is in a class in my DAL which returns a datatable to my user control. If my datatable does not get returned and an error is thrown in my try catch, what i need to happen is display the error message inside that particular user control instead. Not sure how to best achieve this. I was thinking of putting a label inside my user control but not sure how to pass the error message from my class in DAL to my user control.
Thanks