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

Ajax request

1 Answer 80 Views
Grid
This is a migrated thread and some comments may be shown as answers.
mww
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"
    <AjaxSettings> 
        <telerik:AjaxSetting AjaxControlID="RadGridSecondaryCategories"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="RadGridSecondaryCategories"  
                    LoadingPanelID="RadAjaxLoadingPanel1" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
    </AjaxSettings> 
</telerik:RadAjaxManagerProxy> 

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 ?

1 Answer, 1 is accepted

Sort by
0
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,
Plamen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
mww
Top achievements
Rank 1
Answers by
Missing User
Share this question
or