web analytics

Category: .NET

Enable/Disable DIV tags through Javascript 0

Enable/Disable DIV tags through Javascript

Copy/Paste following javascript code snippet. <script type="text/javascript"> function toggleAlert() { toggleDisabled(document.getElementById("content")); } function toggleDisabled(el) { try { el.disabled = el.disabled ? false : true; } catch(E){ } if (el.childNodes && el.childNodes.length > 0) {...

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

Return the value for the specific attribute using XPathNodeIterator 0

Return the value for the specific attribute using XPathNodeIterator

I will use the following XML document in the example below. <? xml version="1.0" encoding="utf-8" ?> < users > < user FirstName ="Tom" LastName ="Adams" Age ="23" /> < user FirstName ="Jhon" LastName ="Brams"...

Row already belongs to another table 0

Row already belongs to another table

When copying a row from one datatable to another you might get the error "this row already belongs to another table". Typically you might write code like this: string sConnString = ConfigurationManager.ConnectionStrings["NorthwindConn"].ConnectionString; DataSet ds...

Uploading a file using libcurl.net 3

Uploading a file using libcurl.net

Following is the code to upload a file to a ftp server through libCurl.NET library. using System; usingSystem.IO; usingSeasideResearch.LibCurlNet; class Upload { public static void Main( String [] args) { try { Curl .GlobalInit((...

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

Debugging Stored Procedures in SQL Serrver 2005 0

Debugging Stored Procedures in SQL Serrver 2005

Pre-requisites 1. Find the .exe file under the directory, C:\Program Files\Microsoft SQL Server\90\Shared\1033\rdbgsetup.exe or similar path where the SQL Server was installed. The file rdbgsetup.exe stands for ‘RemoteDeBuGsetup’. Look for the emphasis on letters....