Drop Down List (in Update Panel) causing FULL PostBack!

前端 未结 11 1783
我在风中等你
我在风中等你 2020-12-10 05:13

I have a problem with my AJAX and ASP.NET 3.5 :( Problem is really weird, as I\'m using the same thing on different page and it works fine in there, but on this specific pag

11条回答
  •  情书的邮戳
    2020-12-10 05:41

    One alternative to fix this issue is:

    Declare the library

    using AjaxControlToolkit;
    

    Then you can do something on these lines

    private void InitControl()
    {        
                //FIX - DROP DOWN
                ToolkitScriptManager scrManager = (ToolkitScriptManager)Page.Master.Controls[0].Controls[0].FindControl("manScript");
                scrManager.RegisterAsyncPostBackControl(ddlNewService_PortTelco);
    }
    

提交回复
热议问题