Custom Adapter

May 7, 2009 at 12:11 AM
I am trying to create a custom adapter as per the documentation and it does not seem to work?

My code is as follows:


@ Register Assembly="FileUploaderAdapter" Namespace="FileUploaderAdapter" TagPrefix="cust" %>

fjx:FileUploader ID="FileUploader1" runat="server">
        <cust:CustomAdapter IncidentID="E36E72BF-8407-DE11-8C46-000F1F66B919" />



Code for the adapter:

using System;
using System.Web;
using System.Collections;

    public class CustomAdapter : com.flajaxian.FileUploaderAdapter
private string _incidentId = string.Empty;
public string IncidentID { get { return _incidentId; } set { _incidentId = value; } }

public override void ProcessFile(HttpPostedFile file)
            // Custom code here



I don't get any errors, but the nothing ever gets passed to the custom adapter.

Anyone have any ideas?

May 7, 2009 at 12:26 AM
I just tested your code and it works perfectly well. May be you are not in debug mode of you have something else not shown here. Your adapter is fine.
May 13, 2009 at 12:41 AM

Appears it may be a problem related to DotNetNuke..

Can not get it to work in a custom DNN module at all.