0
Answer

Error in first hello world c# program

John Miller

John Miller

3y
189
1

Creating Hello World Program

A C# program consists of the following parts −

  • Namespace declaration
  • A class
  • Class methods
  • Class attributes
  • A Main method
  • Statements and Expressions
  • Comments

Let us look at a simple code that prints the words "Hello World" −

using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Mindcracker.InterfaceLayer;
using Mindcracker.Data.ConfigurationHelper;
using log4net;source = Convert.ToInt32(Request.QueryString["BannerId"]);
if (source > 0)
{if (ConfigurationManager.AppSettings["StartPageViewCount"] == "true"){bannerHelper.UpdateBnnerClick(source);}Response.Redirect(target,false);
}