Server Error in '/' Application.

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS1061: 'elements_formgenerator_ascx' does not contain a definition for 'btnSubmit_Click' and no extension method 'btnSubmit_Click' accepting a first argument of type 'elements_formgenerator_ascx' could be found (are you missing a using directive or an assembly reference?)

Source Error:


Line 25:       <cc1:CaptchaControl ID="CaptchaControl1" runat="server" Text="Kóðinn á myndinni:" CaptchaLineNoise="Low" CaptchaBackgroundNoise="None" LayoutStyle="Horizontal" CssClass="Capatcha"></cc1:CaptchaControl>
Line 26:       <br />
Line 27:       <asp:Button ID="btnSubmit" runat="server" CausesValidation="true" OnClick="btnSubmit_Click" Text="Senda" /><br />
Line 28:       <asp:ValidationSummary ID="valSummary1" runat="server" ShowSummary="false" />
Line 29:     </asp:Panel>

Source File: E:\webfiles\www.baendaferdir.is\wwwroot\Elements\FormGenerator.ascx    Line: 27





Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.4063.0