web analytics

Category: ASP.NET

ASP.NET Caching -Improving Performance – Output Cache 0

ASP.NET Caching -Improving Performance – Output Cache

What is Output Cache? Output cache is a mechanism that keep a copy of a rendered ASP.NET web page in memory. This behavior helps to improve performance by returning a response of the cached...

Passing Querystring Parameters to a Silverlight Control 0

Passing Querystring Parameters to a Silverlight Control

The approach to passing Querystring parameters to a Silverlight 2.0 Control that works for me is pretty simple. We check for the presence of Querystrings in the app.xaml Application_Startup using the Silverlight HTML Bridge...

ASP.NET Custom Control Lifecycle 0

ASP.NET Custom Control Lifecycle

I always forget the lifecycle of custom server control classes with respect to web page, ie. aspx file. The following results are based on a drop down list custom control: customcontrol – Constructor customcontrol...

AJAX Tab Container – Style Problem 3

AJAX Tab Container – Style Problem

Cause Since the release of ASP.Net 2.0, all the pages’ DTD are set to XHTML 1.0 Transitional by default. Consequently, AJAX Control Toolkits were also created to adhere with standard. All the rendered AJAX...

Demand Paging (Custom Paging) in ASP.NET with SQL Server 0

Demand Paging (Custom Paging) in ASP.NET with SQL Server

Many a times we need to present bulk data to the user in our day to day application development. Loading all data at one shot is okay when we have few hundreads data but...

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...