Hi Nee,
There will be a few ways to do this. From a strict standards development viewpoint you're going to need to use the ado.net functions part of .net) which handle data access to create the connection to the database in the first place, just trying to push data somewhere but without the explicit link to a database won't do anything.
As Courselab isn't using .net implicitly then this might be a bit painful to achieve. It also will require a server to handle the read/writes, again unless running on an M$ server (the module is handled by a remote server and isn't running as an app on the local PC).
It might be possible on a standalone PC to startup a small instance of apache or tomcat but it could hit some big security problems in setting it up on W2K, XP and especially Vista. It will also require some customisation of the Courselab generated files and the API itself which will need solid knowledge of Javascript.
Another alternative might be AJAX but again you're going to have to develop some javascript modules to handle the events and code within Courselab itself to do something with it at page level.
The basic steps you need to cover will be:
#1. Create a database connection so you can connect to the database.
#2. Create a dbcomm variable as a new OleDbCommand class so you can issue sql commands to the database.
#3. Create a data reader or writer as required.
#4. Bind the reader or writer to a control.
#5. Close the database connection.
You might better off trying this in visual studio which essentially means rewriting the entire module in asp, almost a total reinvention of the wheel would describe what you need to do. Unless you are happy using VB and the net environment this is going to be a big job with a very steep learning curve.
Another option might be to use Flash which can handle connections to databases, you still need to do the equivalent steps but it might be easier as the final flash object could be inserted into a module page on Courselab. For this you're going to need medium to advanced knowledge of flash action script.
The general thing you've probably noticed is that it isn't going to be as simple as you would like it to be. Just trying to push a variable without a lot of supporting structure won't work.
Hi Nee,
There will be a few ways to do this. From a strict standards development viewpoint you're going to need to use the ado.net functions part of .net) which handle data access to create the connection to the database in the first place, just trying to push data somewhere but without the explicit link to a database won't do anything.
As Courselab isn't using .net implicitly then this might be a bit painful to achieve. It also will require a server to handle the read/writes, again unless running on an M$ server (the module is handled by a remote server and isn't running as an app on the local PC).
It might be possible on a standalone PC to startup a small instance of apache or tomcat but it could hit some big security problems in setting it up on W2K, XP and especially Vista. It will also require some customisation of the Courselab generated files and the API itself which will need solid knowledge of Javascript.
Another alternative might be AJAX but again you're going to have to develop some javascript modules to handle the events and code within Courselab itself to do something with it at page level.
The basic steps you need to cover will be:
#1. Create a database connection so you can connect to the database.
#2. Create a dbcomm variable as a new OleDbCommand class so you can issue sql commands to the database.
#3. Create a data reader or writer as required.
#4. Bind the reader or writer to a control.
#5. Close the database connection.
You might better off trying this in visual studio which essentially means rewriting the entire module in asp, almost a total reinvention of the wheel would describe what you need to do. Unless you are happy using VB and the net environment this is going to be a big job with a very steep learning curve.
Another option might be to use Flash which can handle connections to databases, you still need to do the equivalent steps but it might be easier as the final flash object could be inserted into a module page on Courselab. For this you're going to need medium to advanced knowledge of flash action script.
The general thing you've probably noticed is that it isn't going to be as simple as you would like it to be. Just trying to push a variable without a lot of supporting structure won't work.