I am a very good classic asp developer and I am use to having your data access stuff separate from your web pages so...
I want to populate a checkboxlist with values from a stored proc. Example "select * from authors" using pubs database. But I want all the dataaccess code to be a separate class (.vb) file.
All the example I find, they drag the control on the page then use the wizard to select the connection string and the sql statment then when you view the html source everything is in the control. I want the DB connection and sql statments or stored Procs to be in a seperate .vb file.
Can anyone please help me or point me in the correct direction, I have many books but I can't seem to make head or tails.
Also is this the best way or is the best way to use the wizards.
Thanks for any help or advice,
kss113
I want to populate a checkboxlist with values from a stored proc. Example "select * from authors" using pubs database. But I want all the dataaccess code to be a separate class (.vb) file.
All the example I find, they drag the control on the page then use the wizard to select the connection string and the sql statment then when you view the html source everything is in the control. I want the DB connection and sql statments or stored Procs to be in a seperate .vb file.
Can anyone please help me or point me in the correct direction, I have many books but I can't seem to make head or tails.
Also is this the best way or is the best way to use the wizards.
Thanks for any help or advice,
kss113