Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,,,,

this is another question that i want to know that how to apply any jquery function on Onclick() event of Linkbutton.

i have a one Linkbutton and i want to set below jquery function when linkbutton is clicked.

<li  önclick="TINY.box.show({iframe:'User_News.aspx',boxid:'frameless',width:250,height:250,fixed:false,maskid:'bluemask',maskopacity:40,closejs:function(){closeJS()}})" style="color: #0000FF; font-size: medium; height: 28px;" id="l1" 
 runat="server">

this function give me popup message. so how to get this popup when linkbutton is clicked.

Please Help Me on this question....

Thanks in Advance....
Mitesh
Posted
Updated 27-Jun-12 18:36pm
v2

1 solution

Hi Friend,

JavaScript
<script type="text/javascript">
$(document).ready(function()
{
      $('#linkbutton1').click(function(e){
              e.preventDefalut();  //this line of code will prevent the default behaviour of click event
        // here u  write the code which u want to execute on click of a linkbutton
});
});

</script>




If u r not satisfied then please check the below link

how to popup a linkbutton using jquery in asp.net[^]
 
Share this answer
 
v4
Comments
[no name] 28-Jun-12 1:38am    
i want to also use Select query inside the click event and at last i use that pop up message. so please tell me how ? with some presentation data in above code .. Please and also how i added pop up message function which i have given in my Question how it will be use inside that click event.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900