web analytics

Category: .NET

Different operations on Datatable (Add, Edit, delete, Sort etc) and XML 6

Different operations on Datatable (Add, Edit, delete, Sort etc) and XML

Introduction DataTable is a central object in the ADO.NET library. If you are working with ADO.NET – accessing data from database, you can not escape from DataTable. Other objects that use DataTable are DataSet...

Publish a ASP.NET website from command line 0

Publish a ASP.NET website from command line

In case of an automatic build/deployment process it might be a request to precompile the web application after building it. Since .NET Framework 2.0 there is a tool called aspnet_compiler.exe. You can use it...

Change default browser in Visual Studio 0

Change default browser in Visual Studio

Visual Studio opens a web project for debugging in the default browser. This might not be the Internet Explorer. To change this behavior stop debugging and open a ASPX File from your web solution....

Add an entry to event log in C# 2

Add an entry to event log in C#

EventLog is a good place to write your applications log. Here is an example to show how to do this: If ( !EventLog.SourceExists("TestCategory")) EventLog.CreateEventSource("TestCategory","TestLog"); EventLog evtLog = new EventLog(); evtLog.Source = "TestCategory"; evtLog.WriteEntry("This is...