Click here to Skip to main content
15,921,905 members
Home / Discussions / C#
   

C#

 
GeneralVS.NET and ASP.NET Pin
Nick Parker2-Oct-02 17:40
protectorNick Parker2-Oct-02 17:40 
Ok, I am working on writing a forum control and when I try to compile (command line) something very simple I get a slew of errors. This is what the code behind portion has right now, any thoughts? As soon as I comment out the constructor and the Page_Init event everything compiles ok, however when I move the dll file that is created over to the bin, the word "Hello" isn't printed to the screen.
using System;
using System.Collections;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.IO;

namespace DeveloperNotesForum
{
	public class Forum:System.Web.UI.Page
	{
		
		public Forum
		{
			Page.Init += new System.EventHandler(Page_Init);	
		}
		
		private void Page_Load(object sender, EventArgs e)
		{
			Response.Write("Hello");	
		}		
		
		private void Page_Init(object sender, EventArgs e)
		{
			InitializeComponent();	
		}
		
		
		
	}
}


The errors look like this:
<br />
error CS1519: Invalid token "{" in class, struct, or interface member declaration.<br />



Nick Parker

The goal of Computer Science is to build something that will last at least until we've finished building it. - Unknown



GeneralRe: C# and ASP.NET Pin
David Stone2-Oct-02 17:57
sitebuilderDavid Stone2-Oct-02 17:57 
GeneralRe: C# and ASP.NET Pin
Nick Parker2-Oct-02 18:08
protectorNick Parker2-Oct-02 18:08 
GeneralRe: C# and ASP.NET Pin
David Stone2-Oct-02 19:03
sitebuilderDavid Stone2-Oct-02 19:03 
GeneralRe: C# and ASP.NET Pin
Nick Parker3-Oct-02 1:12
protectorNick Parker3-Oct-02 1:12 
GeneralRe: C# and ASP.NET Pin
leppie3-Oct-02 3:01
leppie3-Oct-02 3:01 
GeneralRe: C# and ASP.NET Pin
David Stone3-Oct-02 5:07
sitebuilderDavid Stone3-Oct-02 5:07 
GeneralTwo Form Event questions. Pin
Derek Smigelski2-Oct-02 14:25
Derek Smigelski2-Oct-02 14:25 
Questionhow to log off and login user Pin
imran_rafique2-Oct-02 12:38
imran_rafique2-Oct-02 12:38 
AnswerRe: how to log off and login user Pin
Russell Morris4-Oct-02 2:42
Russell Morris4-Oct-02 2:42 
Questionhow to log off and login user Pin
imran_rafique2-Oct-02 12:35
imran_rafique2-Oct-02 12:35 
General"when pressing ctrl+alt+delete contrul should go our procedure" Pin
imran_rafique2-Oct-02 12:03
imran_rafique2-Oct-02 12:03 
GeneralRe: "when pressing ctrl+alt+delete contrul should go our procedure" Pin
Paul Riley2-Oct-02 12:16
Paul Riley2-Oct-02 12:16 
GeneralRe: "when pressing ctrl+alt+delete contrul should go our procedure" Pin
Ray Cassick2-Oct-02 14:31
Ray Cassick2-Oct-02 14:31 
GeneralRe: "when pressing ctrl+alt+delete contrul should go our procedure" Pin
Paul Riley2-Oct-02 16:41
Paul Riley2-Oct-02 16:41 
GeneralRe: "when pressing ctrl+alt+delete contrul should go our procedure" Pin
David Stone2-Oct-02 19:09
sitebuilderDavid Stone2-Oct-02 19:09 
GeneralRe: "when pressing ctrl+alt+delete contrul should go our procedure" Pin
Anders Molin2-Oct-02 13:55
professionalAnders Molin2-Oct-02 13:55 
GeneralSecurity & Assemblies Pin
2-Oct-02 11:46
suss2-Oct-02 11:46 
Questionhow to halt mouse and key board Pin
imran_rafique2-Oct-02 11:40
imran_rafique2-Oct-02 11:40 
GeneralCreate An "add-in-able" Application Pin
MStanbrook2-Oct-02 6:33
MStanbrook2-Oct-02 6:33 
GeneralRe: Create An "add-in-able" Application Pin
David Williams2-Oct-02 7:17
David Williams2-Oct-02 7:17 
GeneralRe: Create An "add-in-able" Application Pin
MStanbrook2-Oct-02 7:58
MStanbrook2-Oct-02 7:58 
GeneralRe: Create An "add-in-able" Application Pin
David Stone2-Oct-02 8:29
sitebuilderDavid Stone2-Oct-02 8:29 
GeneralRe: Create An "add-in-able" Application Pin
ez22-Oct-02 9:29
ez22-Oct-02 9:29 
GeneralFreeze. This is the Clickety Police! Pin
David Stone2-Oct-02 12:42
sitebuilderDavid Stone2-Oct-02 12:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.