Using the Press and Release event for a Button

  • Thread starter Thread starter Oriane
  • Start date Start date
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
 
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 !
 
Back
Top