Simple Modal Popup 
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Default_TestPopModal" %>

<%@ Register Assembly="ncToolControls" Namespace="ncToolControls" TagPrefix="nc" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">

<html xmlns="">
<head runat="server">
    <title>Modal Popup</title> 
    <script type="text/javascript">
        function confirm_popup() {
            alert("Thnk you for confirming");            
        function close_popup() {
            alert("Good bye");            
    <form id="form1" runat="server">
         <!---Add the button that will trigger to open the modal popup --->
        <p><input type="button" id="myBtn" value="Open" /></p>   
        <!--- Add the Modal Popup Control --->      
        <nc:PopModal ID="ctr12" Width="50" Height="40" runat="server" />         
    document.getElementById("rq1").addEventListener('click', function () {
    document.getElementById("rq2").addEventListener('click', function () {
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;

public partial class Default_TestPopModal : System.Web.UI.Page
    protected void Page_Load(object sender, EventArgs e)
        string HTML_CONTENT = "<table width='100%' id='table1'>";
        HTML_CONTENT += "<tr>";
        HTML_CONTENT += "<td align='center'>Do you wish to continue?</td>";
        HTML_CONTENT += "</tr>";
        HTML_CONTENT += "<tr><td align='center'>&nbsp;</td></tr>";
        HTML_CONTENT += "<tr>";
        HTML_CONTENT += "<td align='right'>";
        HTML_CONTENT += "<input type='button' id='rq1' onclick='javascript:confirm_popup()' value='Yes' />&nbsp;";             HTML_CONTENT += "<input type='button' id='rq2' value='No' onclick='javascript:close_popup()' /></td>";
        HTML_CONTENT += "</tr>";
        HTML_CONTENT += "</table>";
        //- Add the header title
        this.ctr12.lblHeaderMessage.Text = "Confirm";
        //- Modal Popup Content
        this.ctr12.litModalPopupContent.Text = HTML_CONTENT;
         //- Add the footer message
        this.ctr12.lblFooterMessage.Text = "Modal Popup Confirm";       

Add Feedback