connectseekers.com

Thursday, 1 October 2015

jQuery Tooltip With Animation Explode Effect In Asp.Net

10/01/2015 - By Pranav Singh 0

This article will show you how you can create tooltip effect using jQuery in asp.net with explode effect. In this I have shown tooltip in asp.net textbox control.


<link rel="stylesheet" href="http://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
    <script src="http://code.jquery.com/jquery-1.10.2.js"></script>
    <script src="http://code.jquery.com/ui/1.11.4/jquery-ui.js"></script>

Now we will add the below jquery code into the page.

<script>
        $(function () {
            $("#<%=txtName.ClientID %>").tooltip({
                hide: {
                    effect: "explode",
                    delay: 250
                }
            });
        });
    </script>

In this I have used id of the control to display the tooltip on the control. Now combine the code.

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication1.WebForm1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>jQuery Tooltip With Animation Explode Effect In Asp.Net</title>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
    <script src="http://code.jquery.com/jquery-1.10.2.js"></script>
    <script src="http://code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
    <style type="text/css">
        body
        {
            font-size: 11px;
        }
    </style>
    <script>
        $(function () {
            $("#<%=txtName.ClientID %>").tooltip({
                hide: {
                    effect: "explode",
                    delay: 250
                }
            });
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
      Name : <asp:TextBox ID="txtName" runat="server" title="Tooltip with explode effect"></asp:TextBox>
    </div>
    </form>
</body>
</html>

In this whatever we will put on the title of the control will appear in the tooltip as message. Now we have done run the application to check the output.


About the Author

We are the group of people who are expertise in different Microsoft technology like Asp.Net,MVC,C#.Net,VB.Net,Windows Application,WPF,jQuery,Javascript,HTML. This blog is designed to share the knowledge.

Get Updates

Subscribe to our e-mail newsletter to receive updates.

Share This Post

0 comments:

Please let me know your view

Free Ebooks


About Us

We are the group of people who are expertise in different Microsoft technology like Asp.Net,MVC,C#.Net,VB.Net,Windows Application,WPF,jQuery,Javascript,HTML. This blog is designed to share the knowledge.

Contact Us

For writing article in this website please send request by your

GMAIL ID: dotnetpools@gmail.com
Email Id : contact@aspdotnet-pools.com

Bugs and Suggestions

As we all know that this website is for sharing knowledge and providing proper solution. So while reading the article is you find any bug or if you have any suggestion please mail us at contact@aspdotnet-pools.com.

Partners


Top jQuery Plugins

Global Classified : Connectseekers.com
© 2014
back to top