connectseekers.com

Sunday, 22 March 2015

jQuery Animated Dialog Window With Move, Resize and Explode Animation In Asp.Net MVC

3/22/2015 - By Pranav Singh 0

This article will show you how you can create a jquery animated dialog window with move, resize and explode animation in asp.net mvc. This article we can use in MVC2, MVC3,MVC4, MVC5.


So for this article first we will create a new asp.net mvc application. Now add the below mention library into the page.

<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 here is the code to display the dialog box

@{
    ViewBag.Title = "jQuery Animated Dialog Window With Move, Resize and Explode Animation In Asp.Net MVC";
}
 <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>
<script language="javascript">
    $(function () {
        $("#dialogBox").dialog({
            autoOpen: false,
            show: {
                effect: "blind",
                duration: 1000
            },
            hide: {
                effect: "explode",
                duration: 1000
            }
        });
    });
     function OpenDialog() {
         $("#dialogBox").dialog("open");
    }
</script>
<style>
.dialogBoxFontSize
{
    font-size:12px;
}
</style>
<div id="dialogBox" title="Basic dialog with explode" class="dialogBoxFontSize">
    <p>
        This dialog box is appeared after clicking on button. Now click on button to close
        it.jQuery Animated Dialog Window With Move, Resize and Eplode Animation In Asp.Net MVC
    </p>
</div>
<input type="button" value="Open Dialog Box" onclick="javascript:OpenDialog();" />

In above code I have added the below mention jquery code to display the dialog box.

<script language="javascript">
    $(function () {
        $("#dialogBox").dialog({
            autoOpen: false,
            show: {
                effect: "blind",
                duration: 1000
            },
            hide: {
                effect: "explode",
                duration: 1000
            }
        });
    });
     function OpenDialog() {
         $("#dialogBox").dialog("open");
    }
</script>

Now we have done run the application to check the output.


DOWNLOAD 

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