I want to create a ASP.net page without using Visual Studio. But in the same structure i.e., i want to have a .aspx file, a .aspx.cs file and a class file. I am using Notepad to create these files.
I created these 3 files in a virtual directory and incuded the following code in the beginning of the aspx page:
<%@ Page language="c#" Codebehind="Translator.aspx.cs" AutoEventWireup="false" Inherits="TranslatorClass" src="TranslatorClass.cs"%>
I created both the classes in the same namespace.
But when i access this page thru browser i get this error:
CS0117: 'ASP.Translator_aspx' does not contain a definition for 'butTranslate_Click'
Source Error:
Line 5: <asp:label id="ss" text="<b>Universal Translator</b>" font="Bold, Large" runat="server" /><br>
Line 6: <asp:textbox id="txtSource" TextMode="MultiLine" runat="server" />
Line 7: <asp:button id="butTranslate" Text="Translate" AutoPostBack="true" onClick="butTranslate_Click" runat="server" />
Line 8: </form>
This method butTranslate_Click has been defined in the Translator.aspx.cs file.
Please tell me where i am wrong and what i need to do in order to run ASP.net pages like these without VS.net
I created these 3 files in a virtual directory and incuded the following code in the beginning of the aspx page:
<%@ Page language="c#" Codebehind="Translator.aspx.cs" AutoEventWireup="false" Inherits="TranslatorClass" src="TranslatorClass.cs"%>
I created both the classes in the same namespace.
But when i access this page thru browser i get this error:
CS0117: 'ASP.Translator_aspx' does not contain a definition for 'butTranslate_Click'
Source Error:
Line 5: <asp:label id="ss" text="<b>Universal Translator</b>" font="Bold, Large" runat="server" /><br>
Line 6: <asp:textbox id="txtSource" TextMode="MultiLine" runat="server" />
Line 7: <asp:button id="butTranslate" Text="Translate" AutoPostBack="true" onClick="butTranslate_Click" runat="server" />
Line 8: </form>
This method butTranslate_Click has been defined in the Translator.aspx.cs file.
Please tell me where i am wrong and what i need to do in order to run ASP.net pages like these without VS.net