Thursday, 7 May 2015

Show Popup Window on Page Load Using JQuery in Asp.Net C#

No comments    
categories: , , ,
Show Popup  Window on Page Load


Open Website Show Popup Window  on Page _Load Function Without Button Click Event Using in JQuery Asp.Net C#.

                                    DEMO



HTML CODING

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.8.2.js"></script>
<style type="text/css">

.popup{
width100%;
margin0 auto;
displaynone;
positionfixed;
z-index101;
}
.bor{
min-width600px;
width600px;
min-height350px;
margin100px auto;
background#808080;
positionrelative;
z-index103;
padding10px;
border-radius5px;
}
.bor .clo{
floatright;
height35px;
left22px;
positionrelative;
top-25px;
width34px;
}
#drizz {
positionfixed;
width100%;
height100%;
background-color#FF9933;
displaynone;
}
</style>
<script type='text/javascript'>
    $(function () {
        var overlay = $('<div id="drizz"></div>');
        overlay.show();
        overlay.appendTo(document.body);
        $('.popup').show();
        $('.close').click(function () {
            $('.popup').hide();
            overlay.appendTo(document.body).remove();
            return false;
        });
        $('.clo').click(function () {
            $('.popup').hide();
            overlay.appendTo(document.body).remove();
            return false;
        });
       
    });
</script>
</head>
<body>
<div class='popup'>
<div class='bor'>
<img src='~/image/drop.gif' alt='quit' runat="server" class='clo' id='x' />
<h2 align="centre" >
screenshotdrizzles.blogsopt.in Asp.Net C# Tutorials<br />
    C#<br />
    DataBase connection<br />
    GridView Control<br />
    Calender Control<br />
    Image Control<br />
    Data Controls<br />
    JQuery <br />
    JavaScripts<br />
    SQL Server
    <br/>
<br/>
<a href="" class='close'>Hide</a>
</h2>
</div>
</div>
</body>
</html>


First - Add New Web Form - Add Html Coding For  PopUp  & JQuery  For Close





Next - Run[F5]  Show Popup PageLoad






0 comments:

Post a Comment