ProcessPostBackControls (add more controls)

Dec 15, 2008 at 2:35 PM
Could you add more controls in ProcessPostBackControls (in PanelHostPage)?
We add code for HtmlButton and LinkButton :

            else if (control is HtmlButton)
            {
                ((HtmlButton) control).Attributes.Add("onclick", GetPostBackReference(control.ClientID.Replace('_', '$'), "null",true) + "; return false;");
            }
            else if (control is LinkButton)
            {
                    ((LinkButton)control).OnClientClick = GetPostBackReference(control.ClientID.Replace('_', '$'),
                                                                                "null", true);
                    ((LinkButton)control).OnClientClick += "; return false;";
               
            }

Thx

Yohann -> a PartialUpdatePanel fanboy !