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

Very frustrating problem with Radajaxmanager not compiling

2 Answers 55 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Chris LaFrancis
Top achievements
Rank 1
Chris LaFrancis asked on 06 May 2010, 10:25 PM
I posted something last week but the issue went away, and no it is back and I can't figure it out so can someone please take a look?
I have a website that works fine on my development pc but when I deploy it to the webserver I get the following error: BC30456: 'RadAjaxManager1_AjaxRequest' is not a member of 'ASP.default_aspx'.
Here is my Radajaxmanager code on the default.aspx page:
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest"      
        DefaultLoadingPanelID="RadAjaxLoadingPanel1">     
        <AjaxSettings>    
            <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">     
                <UpdatedControls>    
                    <telerik:AjaxUpdatedControl ControlID="GrdPoints" LoadingPanelID="RadAjaxLoadingPanel1" />    
                </UpdatedControls>    
            </telerik:AjaxSetting>    
            <telerik:AjaxSetting AjaxControlID="GrdPoints">     
                <UpdatedControls>    
                    <telerik:AjaxUpdatedControl ControlID="GrdPoints" LoadingPanelID="RadAjaxLoadingPanel1" />    
                </UpdatedControls>    
            </telerik:AjaxSetting>    
            <telerik:AjaxSetting AjaxControlID="GrdGroups">     
                <UpdatedControls>    
                    <telerik:AjaxUpdatedControl ControlID="GrdGroups" LoadingPanelID="RadAjaxLoadingPanel1" />    
                </UpdatedControls>    
            </telerik:AjaxSetting>    
            <telerik:AjaxSetting AjaxControlID="GrdThirdParty">     
                <UpdatedControls>    
                    <telerik:AjaxUpdatedControl ControlID="GrdThirdParty" LoadingPanelID="RadAjaxLoadingPanel1" />    
                </UpdatedControls>    
            </telerik:AjaxSetting>    
        </AjaxSettings>    
    </telerik:RadAjaxManager>   
This is the code on the code behind page:
Protected Sub RadAjaxManager1_AjaxRequest(ByVal sender As ObjectByVal e As AjaxRequestEventArgs)     
        Dim values As String = e.Argument     
        Dim array() As String    
        array = values.Split(",")     
        pointsLowerLimit = CInt(array(0))     
        pointsUpperLimit = CInt(array(1))     
        UpdatePointsLimits(pointsLowerLimit, pointsUpperLimit)     
        UpdatePointsHiddenFields(pointsLowerLimit, pointsUpperLimit)     
        For Each item As GridDataItem In GrdPoints.Items     
            Dim pReceipt As Single = CSng(item("percentOfOperationalNominatedForReceiptRole").Text)     
            Dim pDelivery As Single = CSng(item("percentOfOperationalNominatedForDeliveryRole").Text)     
            Dim imgR As Image = TryCast(item.FindControl("receiptPercent"), Image)     
            Dim imgD As Image = TryCast(item.FindControl("deliveryPercent"), Image)     
            imgR.ImageUrl = setIndicatorURL(pointsLowerLimit, pointsUpperLimit, pReceipt)     
            imgD.ImageUrl = setIndicatorURL(pointsLowerLimit, pointsUpperLimit, pDelivery)     
        Next    
    
    End Sub    
 
This is the Javascript that calls the ajaxmanager when a radwindow closes:
function OnClientClose(oWnd, args) {     
             //get the transferred arguments     
             var arg = args.get_argument();     
             if (arg) {     
                 var pointLimits = new Array();     
                 pointLimits[0] = arg.lowerLimit;     
                 pointLimits[1] = arg.upperLimit;     
                 var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");     
                 ajaxManager.ajaxRequest(pointLimits); // invoke ajaxRequest explicitly      
             }     
         }    
 
I would appreciate any help I can get on this to get it to work on the webserver.
Thank you.

2 Answers, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 11 May 2010, 11:40 AM
Hello Chris,

Could you paste your whole aspx mark-up and code-behind including everything that is on them.

Thank you.

All the best,
Tsvetoslav
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Chris LaFrancis
Top achievements
Rank 1
answered on 11 May 2010, 10:05 PM
As I was copying and pasting my code I realized what my issue was. I had copied the code behind to another page and didn't change the name in the Partial Public Class _Default so I ended up with 2 classes with the same name for different pages, and since the ajax manager was only on one of them it was giving me the error for that page, and I assumed it was the original one.
i appologize for you taking time to answer this and there wasn't a problem with the controls but I do appreciate it since it was what got me to figure it out.
Thank you.
Chris
Tags
Ajax
Asked by
Chris LaFrancis
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Chris LaFrancis
Top achievements
Rank 1
Share this question
or