Activex controls in asp.net
I need to use an activex control in a web application that I am designing. I've read that I can go two ways:
1. I can add a reference, which creates a wrapper, and then I can instantiate objects dynamically using the wrapper. In this case the control will be running in the server.
2. I can add the activex using the toolbox of the .net visual studio designer. This creates an object tag in html. In this case the control will run in the client side.
How do I instantiate the object in the second case? Do I have to use a script language like java script? Can anybody provide me with an example?