Hello. Maybe someone can help me after searching forums didn't provide me with an appropriate answer (maybe because I'm a newbie on asp.net):
I created an upload form. Each time I compile the below-mentioned code, I get the error "CS0102: The type 'FileUpload.WebForm1' already contains a definition for 'cmdUpload'".
I tried to delete the initialization of lblMessage and cmdUpload from the Default.aspx.cs, but then he gives me "The name [Name] doesnt exist in the current context".
What did I do wrong??
Thank you for your help
Default.aspx:
<%@ Page language="C#" CodeFile="Default.aspx.cs" AutoEventWireup="true" Inherits="FileUpload.WebForm1" %>
<%@ Register src="~/UserControls/Footer.ascx" TagName="Footer" TagPrefix="Footer" ...
Go to the complete details ...