MS Visual Web Developer Double click VB.NET -


ms visual web developer 2010-vb.net

when button double clicked ,i want show controls.how add codes in double click event. thanks

based on fact you're using visual studio web developer, i'll assume you're doing browser. if you're not, comment on answer , i'll delete it.

asp.net doesn't distinguish between single , double clicks. you'll have use javascript this. you're trying accomplish, you'll have make client-side button ondblclick event calls .click() function of server-side button's rendered <input> element. here's mean:

<asp:button id="button" onclick="some_method()" /> <!-- renders this: --> <input type="submit" onclick="..." name="button" id="button" /> 

knowing (you can check in rendered document), can this:

<input type="button" ondblclick="document.getelementbyid('button').click()" ... /> 

of course, want 1 button visible. this, set visible false in asp.net server control.

again, question non-asp.net stuff, in case answer worthless. if so, comment telling me so, , i'll delete answer.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -