This is a migrated thread and some comments may be shown as answers.

Ajax request

1 Answer 84 Views
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 1
mww asked on 21 Oct 2008, 02:39 PM
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 AJAX versions, so why am I getting this error ?

1 Answer, 1 is accepted

Sort by
Missing User
answered on 22 Oct 2008, 08:30 AM
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.
Asked by
Top achievements
Rank 1
Answers by
Missing User
Share this question