Inheritance: DynamicPopulateExtenderControlBase
 /// <summary>
 /// Gets a proxy PopupControlExtender representing the currently active popup on the specified page
 /// </summary>
 /// <remarks>
 /// Only the Cancel and Commit methods should be called on the proxy
 /// </remarks>
 public static PopupControlExtender GetProxyForCurrentPopup(Page page)
 {
     PopupControlExtender popupControlExtender = new PopupControlExtender(page);
     return popupControlExtender;
 }
        /// <summary>
        /// Returns a proxy PopupControlExtender representing the currently active popup on the specified page
        /// </summary>
        /// <remarks>
        /// Only the Cancel and Commit methods should be called on the proxy
        /// </remarks>
        /// <param name="page" type="Page">Page</param>
        /// <returns>Popup control extender</returns>
        public static PopupControlExtender GetProxyForCurrentPopup(Page page)
        {
            var popupControlExtender = new PopupControlExtender(page);

            return(popupControlExtender);
        }
        protected void Page_Init(object sender, EventArgs e)
        {
            user = Membership.GetUser();
            if (user != null)
            {

                //<cc1:ModalPopupExtender ID="mpeSc" runat="server" PopupControlID="popScore" CancelControlID="cancelVote"
                //TargetControlID="btnVote" BackgroundCssClass="modalBackground" BehaviorID="mpeVote" />
                popScore.Visible = true;
                ModalPopupExtender mpeScore = new ModalPopupExtender()
                {
                    ID = "mpeSc",
                    PopupControlID = popScore.ClientID,
                    CancelControlID = cancelVote.ClientID,
                    TargetControlID = btnVote.ID,   //will note resolve, done in exception
                    BackgroundCssClass = "modalBackground",
                    BehaviorID = "mpeScore"
                };
                mpeScore.ResolveControlID += mpe_ResolveControlID;
                this.Form.Controls.Add(mpeScore);

                //<cc1:PopupControlExtender ID="PCECom" runat="server" BehaviorID="comPopBhr" Position="Left" OffsetX="-250" OffsetY="38"
                //PopupControlID="pnlVote" TargetControlID="btnComDummy" />
                pnlVote.Visible = true;
                PopupControlExtender popVote = new PopupControlExtender()
                {
                    ID = "PCECom",
                    PopupControlID = pnlVote.ClientID,
                    TargetControlID = btnComDummy.ID,   //will note resolve, done in exception
                    BehaviorID = "comPopBhr",
                    Position = PopupControlPopupPosition.Left,
                    OffsetX = -250,
                    OffsetY = 38

                };
                popVote.ResolveControlID += mpe_ResolveControlID;
                upComs.ContentTemplateContainer.Controls.Add(popVote);
            }
            else
            {
                btnVote.Attributes.Add("onclick", "$find('mpbSignup').show();");

            }

            if (!IsPostBack)
            {
                if (Request["cat"] != null)
                {
                    bool loaded = BindAll();
                    LoadEmbed();

                    if (user != null && loaded && _board.UserId == user.ProviderUserKey.ToString())
                    {
                        lnkEdit.Visible = true;
                        lnkEdit.InnerText = "Edit";
                        lnkEdit.HRef = "/users/make_scoreboard.aspx?edit=" + Request["cat"];
                    }
                }
            }
            else
            {
                //might be partial postback of comment deleted.  Check for commandNAme of "delCom"

            }
        }