or


| protected override void OnInit(EventArgs e) |
| { |
| base.OnInit(e); |
| Page.ClientScript.RegisterStartupScript(typeof(ProjectSearchBuilder), this.ID, "_spOriginalFormAction = document.forms[0].action;_spSuppressFormOnSubmitWrapper=true;", true); |
| if (this.Page.Form != null) |
| { |
| string formOnSubmitAtt = this.Page.Form.Attributes["onsubmit"]; |
| if (!string.IsNullOrEmpty(formOnSubmitAtt) && formOnSubmitAtt == "return _spFormOnSubmitWrapper();") |
| { |
| this.Page.Form.Attributes["onsubmit"] = "_spFormOnSubmitWrapper();"; |
| } |
| } |
| ScriptManager scriptManager = ScriptManager.GetCurrent(Page); |
| if (scriptManager == null) |
| { |
| scriptManager = new RadScriptManager(); |
| Page.Form.Controls.Add(scriptManager); |
| } |
| EnsureChildControls(); |
| } |
| protected override void OnLoad(EventArgs e) |
| { |
| base.OnLoad(e); |
| ((RadAjaxManager)FindControl("RadAjaxManager1")).AjaxSettings.AddAjaxSetting(FindControl("_btnSearch"), FindControl("ProjectGrid")); |
| ((RadAjaxManager)FindControl("RadAjaxManager1")).AjaxSettings.AddAjaxSetting(FindControl("_btnSearch"), FindControl("RadGrid2")); |
| ((RadAjaxManager)FindControl("RadAjaxManager1")).AjaxSettings.AddAjaxSetting(FindControl("_btnSearch"), FindControl("RadGrid3")); |
| } |
