vb.net - VB - Listbox DoubleClick event in ASP.net -


i want add double click event listbox in asp.net

but events on listbox in asp.net seem those:

enter image description here

is there way add doubleclick event without javascript?

any appreciated

no, i'm afraid not! can call __dopostback in js-function ondblclick.

<script type="text/javascript">  <!--      function listbox1_doubleclick() {          __dopostback('<%= listbox1.clientid  %>', 'doubleclick');      }  -->  </script>  <asp:listbox id="listbox1"          ondblclick="listbox1_doubleclick()" runat="server">     <asp:listitem value="1">one</asp:listitem>     <asp:listitem value="2">two</asp:listitem>     <asp:listitem value="3">three</asp:listitem>     <asp:listitem value="4">four</asp:listitem> </asp:listbox> 

codebehind:

public void page_load(object sender, eventargs e) {   string parameter = request["__eventargument"]; // parameter   // request["__eventtarget"]; // btnsave } 

Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -