05-04-2014 02:33 AM
Hi Everyone,
I am trying to build an NIDaq interface under Asp.net in order to control an USB 6501 daq device connected to the server, where would be hosted the webpage that embbed this application.
The application is controlling several Digital Outputs of the Daq card through boolean led controls, with mouse enter and mouse leave events.
Although it seems that these events are not managed under asp.net, after some investigation, it seems to be possible to fire these events from the client side (through javascript) and send them to the server side (asp.net).
-Is this possible?
-How should I do you that?
-Does anyone have done that?
-If, yes could they provide any example?
It also seems that to refresh a control the whole webpage is being refreshed, is there a way to overcome that?
Finally, I though including the WPF NI boolean library into the references and adding it through the toolbox would allow me access to these controls, but they do not appear in the toolbox.
Thanks,
Best Regards,
05-28-2014 04:36 PM
Hi Olivioloyer,
I’ve been searching information about the ASP.NET Web Server Control Event Model and, as you said, there are some methods that aren’t supported for ASP.NET server controls direct from a client.
Nevertheless, using client script, you can add mouse and keyboard event handling to ASP.NET server controls. For more information I recommend you to take a look in the following links:
Client Script in ASP.NET Web Pages
How to: Add Client Script Events to ASP.NET Web Server Controls.
I also share with you the following video as an example for using javascript event handlers to ASP.NET server controls:
I hope this information will be useful for you. Best Regards.