Using the Press and Release event for a Button

O

Oriane

Hi there,

I would like to use a asp:Button to command a blind: when I press the Up
button, the blind is opening, when I release the button, the blind stops.

So I would like to send two commands to the Web server, one when I start
pressing the button, the other when I release it.

Any idea ?

Best regards
 
O

Oriane

Hi Mark,
Mark Rae said:
You'll need use the JavaScript onMouseDown and onMouseUp events.

However, if you want these events to communicate with the server, you'l
have to either cause a postback or use AJAX.
I use Ajax, but I can't see how causing a postback and call the server-side
method...

Thank you !
 

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,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top