I'd like to create a databound custom control that I can pass a parameter to in order to filter its dataset. The scenario is as follows:
I'd create a generic StudentInfo control that would display Name, Address, and Phone Number from the Student Info table. This generic StudentInfo control would include a dataset using SQL like "Select * from Student Info". The form that contains the StudentInfo control would then pass it an SSN, upon which it would filter the data and only display the info for that particular SSN.
Sounds like a simple task, yet I'm having some difficulties.
Anybody want to have a go?
Cheers!
I'd create a generic StudentInfo control that would display Name, Address, and Phone Number from the Student Info table. This generic StudentInfo control would include a dataset using SQL like "Select * from Student Info". The form that contains the StudentInfo control would then pass it an SSN, upon which it would filter the data and only display the info for that particular SSN.
Sounds like a simple task, yet I'm having some difficulties.
Anybody want to have a go?
Cheers!