This might sound like a stupid question but lets say that I have created an ActiveX control in Visual Basic and I add the control to an html document. On my control I have a command button and a text box.

My question is: Is it possible to write vbscript for the command button on the ActiveX control? Say for example: I want to click on it (on Click) and then another html page will be displayed. How can I do this?

Second question is: When The ActiveX control is running and i type data into the text box on the Control, can I take this text box info from the Active X control and pass it onto the db using asp?

If so can you display an example.

Help is greatly appreciated!
Stevie