The most easiest thing in C# I guess, but I don't get it.
I'm new, you don't say...
If I make a new ASP.NET Website in Visual Studio 2005,
how can I make a simple line 'System.Console.Writeline("I don't get it");' work?
Code:
using System;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Console.WriteLine("I don't get it");
}
}
The website opens but I don't see a written line 'I don't get it'.
Can anyone please help me, I want to practise C#, but if I can't make this work, what else...
Unless you really need to make web apps, I suggest you practice C# by making console applications. This spares you the burden of having to worry about a GUI of any sort.
No, just pick Run Without Debugging instead of Run and it'll keep the console open automatically. Console applications should not stay open by themselves.