Click here to Skip to main content
15,901,373 members
Home / Discussions / C#
   

C#

 
GeneralRe: basic C# question Pin
James T. Johnson3-Oct-02 1:49
James T. Johnson3-Oct-02 1:49 
QuestionCan anyone help with a Shell32 problem? Pin
Furty2-Oct-02 17:58
Furty2-Oct-02 17:58 
AnswerRe: Can anyone help with a Shell32 problem? Pin
Stephane Rodriguez.2-Oct-02 21:28
Stephane Rodriguez.2-Oct-02 21:28 
GeneralRe: Can anyone help with a Shell32 problem? Pin
Furty3-Oct-02 0:18
Furty3-Oct-02 0:18 
GeneralRe: Can anyone help with a Shell32 problem? Pin
Stephane Rodriguez.3-Oct-02 0:22
Stephane Rodriguez.3-Oct-02 0:22 
GeneralRe: Can anyone help with a Shell32 problem? Pin
Furty3-Oct-02 0:54
Furty3-Oct-02 0:54 
GeneralRe: Can anyone help with a Shell32 problem? Pin
Stephane Rodriguez.3-Oct-02 0:59
Stephane Rodriguez.3-Oct-02 0:59 
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 

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.