I would like Image Manager to display a list of images from a database so that they can be inserted into the editor.
I am using asp.net 3.5, Visual Web Developer 2008 Express and VB.
I understand that to do this I need to build a Custom FileBrowserContent Provider as described in:
http://www.telerik.com/help/aspnet-ajax/customfilebrowsercontentprovider.html
I have created MyContentProvider class in MyCustomProvider namespace as per the above help page and added:
<%@ Register Namespace = "MyCustomProvider" TagPrefix = "MyCp" Assembly="App_Code" %>
But when I add:
RadEditor1.ImageManager.ContentProviderTypeName = "ContentProviders.RadEditor.MyContentProvider, App_Code" to my code behind, the Image Manager page has the following error:
Value cannot be null.
Parameter name: type
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentNullException: Value cannot be null.
Parameter name: type
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[ArgumentNullException: Value cannot be null.
Parameter name: type]
System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +7679178
Telerik.Web.UI.RadFileExplorer.InitContentProvider(String selectedUrl) +226
Telerik.Web.UI.RadFileExplorer.InitContentProvider() +138
Telerik.Web.UI.RadFileExplorer.BindExplorer() +48
Telerik.Web.UI.RadFileExplorer.OnLoad(EventArgs e) +139
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
I've also tried setting it with the example (from the Help page above):
RadEditor1.FileBrowserContentProviderTypeName = typeof(DatabaseContentProvider).AssemblyQualifiedName
but I don't know the VB syntax for this.
Your help would be much appreciated.
Thanking you in anticipation.
Roger