Ajax request

2 posts, 0 answers
  1. mww
    mww avatar
    257 posts
    Member since:
    Sep 2012

    Posted 21 Oct 2008 Link to this post

    I have a master page with an AJAXManager on it, then in a contents page I have a RadManagerProxy

    <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server"
            <telerik:AjaxSetting AjaxControlID="RadGridSecondaryCategories"
                    <telerik:AjaxUpdatedControl ControlID="RadGridSecondaryCategories"  
                        LoadingPanelID="RadAjaxLoadingPanel1" /> 

    I then have some javascript that initiates an ajax request, but when I load the page I get this compiler error

    Compiler Error Message: CS0104: 'RadAjaxManager' is an ambiguous reference between 'Telerik.WebControls.RadAjaxManager' and 'Telerik.Web.UI.RadAjaxManager' 
    Source Error: 
    Line 107:                 
    Line 108:                if (!arg) { 
    Line 109:                    $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>").ajaxRequest("SubCategoryRebind"); 
    Line 110:                } 
    Line 111:                else { 

    Both the RADManager and RadProxy are asp.net AJAX versions, so why am I getting this error ?
  2. Plamen Peshev
    Plamen Peshev avatar
    886 posts

    Posted 22 Oct 2008 Link to this post

    Hello mark,

    Your page contains using directives for two namespaces and your code references a name that appears in both namespaces. So use a fully qualified namespace - here is an example:

    if (!arg) {  
        $find("<%= Telerik.Web.UI.RadAjaxManager.GetCurrent(Page).ClientID %>").ajaxRequest("SubCategoryRebind");  
    else {  

    Kind regards,
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. DevCraft R3 2016 release webinar banner
Back to Top