Click to get Flash Player
Get Adobe Flash player

or try to enable JavaScript and reload the page

Wednesday 5 September 2012

Detect pressed key with jquery

$(document).keypress(function(e) {
    if(e.which == 13) {      //13 is stand for Enter key
        alert('You pressed enter!');
    }
});

Tuesday 4 September 2012

Show & Hide Gridview Cell with mouse hover asp

 $(document).ready(function () {

            $('<%# GridView1.ClientID%> tr td:nth-child(2)').hover(function () {
                $(this).next().css("visibility", "visible");            // show on mouse over on row
            });
            $('<%# GridView1.ClientID%> tr').mouseleave(function () {
                $('<%# GridView1.ClientID%> tr td:nth-child(3)').css("visibility", "hidden"); //hide on mouse leave from row
            });

});

Saturday 1 September 2012

Call Server Method on Button Hover ASP

 <asp:LinkButton ID="hoverButton" runat="server" OnClick="click" onmouseover="__doPostBack(this.id, '');" Text="Mouse Over Me" />