Hi everyone,
I'm trying to create an ImageUpload Control so that can users add an avatar to their profile online i don't know how it works. I tried to follow this guide : http://www.dnndevzone.com/Library/tabid/126/ArticleId/4/Default.aspx but it keeps giving me inherit errors.
Basically i want to add a FileUpload datatype so that i can add a custom profile field Avatar or Picture with an upload field.
Is there anyone who can help me on my way creating this control or explain to me how exactly to add the foldereditcontrol from the link, it already fails when i tried to write the class.
This is my class ImageControl.ascx.cs
using System;
using DotNetNuke.UI.UserControls;
public partial class ImageUpload : TextEditor
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
and my ascx file:
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ImageControl.ascx.cs" Inherits="ImageControl" %>
I'm getting the following error:
Error 1 Make sure that the class defined in this code file matches the 'inherits' attribute, and that it extends the correct base class (e.g. Page or UserControl). C:\inetpub\wwwroot\dnntestsite\controls\ImageControl.ascx.cs 15 33 http://localhost/dnntestsite/
What am i doing wrong, i want to create a control under this:
I hope someone can help me with this problem.
Thanx in advance!