Source Code

for file /controls/AJAXPopUp.ascx

<%@ Control Language="C#" Inherits="AJAXControls.BaseControl" %>
<%
// controls/ajaxpopup.ascx
// Implementation of the PopUp (Pseudo-)Control using the AJAXEngine.
// Copyright (c) by Matthias Hertel, http://www.mathertel.de
// This work is licensed under a BSD style license. See http://www.mathertel.de/License.aspx
// -----
// This control renders nothing inside the page but registers the common include file
// controls/jcl.js and controls/ajaxpopup.js.
// -----
// 09.06.2006 created by Matthias Hertel
// 26.10.2007 inheriting from BaseControl
%>
<script runat="server">
  public string infomethod = String.Empty;
  
  protected override void OnPreRender(EventArgs e)
  {
    base.OnPreRender(e);

    base.RegisterBehavior("ajaxpopup");
  } // OnPreRender
</script>
<%-- use a invisible html object for passing the parameters --%>
<div id="<%=this.ClientID %>" infomethod="<%=this.infomethod %>" style="display:none"></div>
<script defer="defer" type="text/javascript">jcl.LoadBehaviour("<%=this.ClientID %>", AJAXPopUpBehaviour);</script>

This page is part of the http://www.mathertel.de/ web site.

For updates and discussions see http://ajaxaspects.blogspot.com/.