----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: wan2bhappyagn Message 1 in Discussion 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="Universal Translator" font="Bold, Large" runat="server" /> 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. I have included the VS.NET designer generated code too (i.e., InitializeComponent etc.,) I compiled the TranslatorClass.cs using the command csc /t:library then i copied the dll to the bin directory in the virtual folder. but when i tried to compile Translator.aspx.cs it gave me error. Actually in the Translator.aspx.cs file i create an object of the TranslatorClass. so it is giving me error. I actually have created both the classes in the same namespace. 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 dont want to use any other IDE also) ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/BDotNet/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
