ActiveX Control on ASP.NET Page

C

CSharpNewBie

Hi

I have a ActiveX control (TcpSocket Client) which has 3 Events
OnConnect/OnDisconnect and OnEvent.
my question is
how do I embed this non-visual control on a aspx webpage and create a
OnEvent Handler which receives data from a Tcp Server and add that to
dataset to be displayed on DataGrid.

This works fine a on Windows Application.

Thanks in Advance.
 
L

Lucas Tam

Hi

I have a ActiveX control (TcpSocket Client) which has 3 Events
OnConnect/OnDisconnect and OnEvent.

FYI, .NET also has a socket client... so if you need only TCP socket
access, it might be better to use the native .NET classes.
my question is
how do I embed this non-visual control on a aspx webpage and create a
OnEvent Handler which receives data from a Tcp Server and add that to
dataset to be displayed on DataGrid.

You'll need to register the ActiveX object on the server. Add a reference
to the ActiveX object to your ASP.NET project. From there, you'll need to
declare an instance of the ActiveX object... and after that you should be
able to access the event handlers.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top