_a_radEditor =
new RadEditor();
_a_radEditor.ID =
"a_RadEditor";
_a_radEditor.ImageManager.UploadPaths = new string[] { tempURL };
_a_radEditor.ImageManager.ViewPaths =
new string[] { tempURL };
_a_radEditor.ImageManager.DeletePaths =
new string[] { tempURL };
I have an existing ASP.NET web application built in VS 2005 (.NET2.0) that contains existing Telerik ASP.NET Q1 2009 controls on the content page (RadAjaxManager, RadGrid plus a number of asp:dropdown, asp:ListBox and asp:Panel controls). The master page contains a RadMenu control, but I don't believe this is causing my issue.
My issue is that I am now planning on replacing some of the dropdown and ListBox controls with one telerik:TreeView control (ASP.NET AJAX Q2 2009 NET20). My understanding is that I need the telerik:RadScriptManager as well to get this the tree view to work. Unfortunately the page loads with an error "A compilation error has occurred.". In a test page without the classic controls the page loads OK, and the exisitng works fine without the new controls. In attempting to debug the code, I never find where the issue is. Just trying to load the page just kick me right out. The event viewer logs the below warning:
Event Type: Warning
Event Source: ASP.NET 2.0.50727.0
Event Category: Web Event
Event ID: 1310
Date: 2009-08-31
Time: 11:23:24 AM
User: N/A
Computer: CA22665-FKOEH04
Description:
Event code: 3007
Event message: A compilation error has occurred.
Event time: 8/31/2009 11:23:24 AM
Event time (UTC): 8/31/2009 3:23:24 PM
Event ID: c9bb7c1195fb49c989b19c780fe66e2c
Event sequence: 21
Event occurrence: 1
Event detail code: 0
Application information:
Application domain: /LM/w3svc/1/ROOT/PIMS2008-5-128962057617439474
Trust level: Full
Application Virtual Path: /PIMS2008
Application Path: D:\TFS\PIMS\PIMS - Current\solutions\wwwroot\PIMS_2008\
Machine name: CA22665-FKOEH04
Process information:
Process ID: 4340
Process name: aspnet_wp.exe
Account name: CA22665-FKOEH04\ASPNET
Exception information:
Exception type: HttpCompileException
Exception message: D:\TFS\PIMS\PIMS - Current\solutions\wwwroot\PIMS_2008\UserProfileTreeViewTest.aspx(203): error BC30456: 'cbViewLocation_CheckedChanged' is not a member of 'ASP.userprofiletreeviewtest_aspx'.
Request information:
Request URL: http://localhost/PIMS2008/UserProfileTreeViewTest.aspx
Request path: /PIMS2008/UserProfileTreeViewTest.aspx
User host address: 127.0.0.1
User: fkoehlmann
Is authenticated: True
Authentication Type: Forms
Thread account name: CA22665-FKOEH04\ASPNET
Thread information:
Thread ID: 1
Thread account name: CA22665-FKOEH04\ASPNET
Is impersonating: False
Stack trace: at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)
at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert)
at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert)
at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
at System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig)
at System.Web.HttpApplication.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Custom event details:
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
I have reviewed some of the forums messages and it seems that some people have had difficulty when combining the older classic controls with the newer ajax ones, but I didn't see anything like this. Do I need to update my old controls? If so what issue will I encounter when upgrading the RadGrid?
Thanks, Fred.
| <telerik:RadListBox ID="RadListBoxContacts" runat="server" Skin="Telerik" AutoPostBack="true" |
| AutoPostBackOnTransfer="true" DataKeyField="contactID" DataTextField="Description" |
| Width="240px" Height="200px" AllowTransfer="true" TransferToID="RadListBoxServiceContacts" |
| ButtonSettings-ShowTransferAll="false" EnableViewState ="true"> |
| <ButtonSettings ShowTransferAll="False" /> |
| </telerik:RadListBox> |
| <telerik:RadListBox ID="RadListBoxServiceContacts" runat="server" Skin="Telerik" |
| DataKeyField="contactID" DataTextField="Description" Width="245px" Height="200px" |
| AutoPostBack="True" EnableViewState ="true" > |
| </telerik:RadListBox> |
| Private Sub RadListBoxServiceContacts_Deleted(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadListBoxEventArgs) Handles RadListBoxServiceContacts.Deleted |
| Session("Avalability") = "Delete" |
| Me.lblServiceContactDescription.Text = "Select a contact to view details" |
| Me.lblServiceContactDetails.Text = "" |
| End Sub |
| Private Sub RadListBoxServiceContacts_Inserted(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadListBoxEventArgs) Handles RadListBoxServiceContacts.Inserted |
| Session("Avalability") = "Insert" |
| Me.lblContactDescription.Text = "Select a contact to view details" |
| Me.lblContactDetails.Text = "" |
| End Sub |
| Private Sub RadListBoxContacts_Transferred(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadListBoxTransferredEventArgs) Handles RadListBoxContacts.Transferred |
| Dim contactID As String = CStr(e.SourceListBox.SelectedItem.DataKey) |
| Dim serviceID As String = CStr(Me.RadListBoxServices.SelectedItem.DataKey) |
| If CStr(Session("Avalability")) = "Delete" Then |
| objWebService.removeContactFromService(contactID, serviceID) |
| ElseIf CStr(Session("Avalability")) = "Insert" Then |
| objWebService.addContactToService(contactID, serviceID) |
| End If |
| Me.RadListBoxContacts.Items.Clear() |
| Me.RadListBoxServiceContacts.Items.Clear() |
| Me.RadListBoxServiceContacts.DataSource = objWebService.getServicesContacts(CInt(Me.RadListBoxServices.DataKeys.Item(Me.RadListBoxServices.SelectedIndex))) |
| Me.RadListBoxServiceContacts.DataBind() |
| Me.RadListBoxContacts.DataSource = objWebService.getEmployeeContactsNotInService(CInt(Me.RadListBoxServices.DataKeys.Item(Me.RadListBoxServices.SelectedIndex)), Me.RadComboBoxSelectedEmployee.SelectedValue, "") |
| Me.RadListBoxContacts.DataBind() |
| End Sub |

| protected void RadAjaxManager1_AjaxRequest(object sender, Telerik.Web.UI.AjaxRequestEventArgs e) | |
| { | |
| if (e.Argument != "Save") | |
| { | |
| return; | |
| } | |
| //Some codes to save content comes here... | |
| //... | |
| } |
| <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Editor.aspx.cs" Inherits="ESS.Editor" %> | |
| <%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> | |
| <html xmlns="http://www.w3.org/1999/xhtml"> | |
| <head id="Head1" runat="server"> | |
| <title><%=GetTitle() %></title> | |
| <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server"> | |
| <script type="text/javascript"> | |
| function ajaxRequest(operation) | |
| { | |
| var ajaxManager = $find("<%=RadAjaxManager1.ClientID %>"); | |
| ajaxManager.ajaxRequest(operation); | |
| } | |
| </script> | |
| </telerik:RadScriptBlock> | |
| <script type="text/javascript"> | |
| function OnClientLoad(editor, args) | |
| { | |
| editor.fire("ToggleScreenMode"); | |
| } | |
| </script> | |
| </head> | |
| <body> | |
| <form id="form2" runat="server"> | |
| <telerik:RadScriptManager ID="ScriptManager1" runat="server" EnableTheming="True"/> | |
| <div style="text-align: center"/> | |
| <telerik:RadAjaxManager ID="RadAjaxManager1" | |
| runat="server" | |
| OnAjaxRequest="RadAjaxManager1_AjaxRequest"> | |
| </telerik:RadAjaxManager> | |
| <telerik:RadEditor ID="RadEditor1" | |
| Runat="server" | |
| OnClientLoad="OnClientLoad" Height="500px" Width="100%"> | |
| <Content> | |
| </Content> | |
| <CssFiles> | |
| <telerik:EditorCssFile Value="ESS.css" /> | |
| </CssFiles> | |
| </telerik:RadEditor> | |
| <script type="text/javascript"> | |
| RadEditorCommandList["Save"] = function(commandName, editor, oTool) | |
| { | |
| ajaxRequest("Save"); | |
| } | |
| RadEditorCommandList["Cancel"] = function(commandName, editor, oTool) | |
| { | |
| ajaxRequest("Cancel"); | |
| } | |
| </script> | |
| </form> | |
| </body> | |
| </html> | |
