• NA
  • 716
  • 1m

Popup window to appear on an event

Oct 8 2014 2:30 PM


I am trying to make a popup window to appear in my web form when a threshold is exceeded I tried with this code, but this is activated on button click, not when some event like in my case occurs Also it uses AJAX Can anybody refer me please to an example which would help me how to make a custom popup window to appear when an event happens?

Here is the code for the popup I found

<head runat="server">
    <script type="text/javascript" src=""></script>
<script src="" type="text/javascript"></script>
<link href=""
    rel="stylesheet" type="text/css" />
<script type="text/javascript">
    $("[id*=btnPopup]").live("click", function () {
           // title: "jQuery Dialog Popup",
            buttons: {
                Close: function () {
        return false;

    <form id="form1" runat="server">
   <%-- <div>--%>
    <div id="dialog" style="display: none">
    This is a simple popup
        <asp:Button ID="btnPopup" runat="server" Text="Show Popup" />


Answers (1)