Doubleclick event in DataView

C

Chris Zopers

Hello,

I have a html table and each row in it shows a record. Below the table
there is an asp:button. When the user clicks on the button, a form is
openened where the user can view or edit the selected row/record in the
table.

It should also be possible for a user to doubleclick on a row, this
should have the same effect as selecting a row and clicking the edit
button.

From client side / javascript this is easy to accomplish, but I would
like to do this without javascript/client-side script.

So I have a html table (may be changed to a DataView if that's easier),
and an asp:button. Is there a way to do this without javascript?

Greetings,
Chris
 
M

Michael Nemtsev [MVP]

Hello Chris,

see sample there http://aspadvice.com/blogs/joteke/archive/2006/01/07/14576.aspx
but using javascript is rather elegant way

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo


CZ> Hello,
CZ>
CZ> I have a html table and each row in it shows a record. Below the
CZ> table there is an asp:button. When the user clicks on the button, a
CZ> form is openened where the user can view or edit the selected
CZ> row/record in the table.
CZ>
CZ> It should also be possible for a user to doubleclick on a row, this
CZ> should have the same effect as selecting a row and clicking the edit
CZ> button.
CZ>
CZ> From client side / javascript this is easy to accomplish, but I
CZ> would like to do this without javascript/client-side script.
CZ>
CZ> So I have a html table (may be changed to a DataView if that's
CZ> easier), and an asp:button. Is there a way to do this without
CZ> javascript?
CZ>
CZ> Greetings,
CZ> Chris
CZ>
CZ>
 

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

Top