Category Archives: ASP.NET

EarthQuake impacts around Kathmandu and Lalitpur

It has been 12 days today of the massive earthquake and I am in Kathmandu. Kathmandu including Lalitpur and Bhaktapur has become almost empty these days, with very less people and vehicles on the road. Few days back i could … Continue reading

Posted in ASP.NET | 1 Comment


Both HTTP method can achieve the same goals, but making incorrect choice between them can lead to unexpected and potentially harmful results. Basically GET is used to retrieve remote data, and POST is used to insert/update remote data. Applications which … Continue reading

Posted in ASP.NET | Leave a comment

Populate days dropdownlist for selected month and year using javascript

In this article, i have described how we can populate number of days in day dropdownlist using javascript for the selected month and year. When we change the the month and year, the values in the days drop down will … Continue reading

Posted in ASP.NET, C#, Javascript and Jquery | Tagged , , , , , , , | Leave a comment

Split DataTable into multiple tables

Consider a DataTable with a column name salary, following code splits the DataTable on the basis of values in salary column, i.e all the rows in DataTable with same salary will come into one DataTable. DataTable dt= new DataTable(); dt … Continue reading

Posted in ASP.NET, C# | Tagged , , , , , , | Leave a comment

Events and ASP.Net

ASP.Net is an event-driven programming and responds to events through its predefined event handlers. When events are raised it must be handled. In ASP.NET, objects may raise events and may have assigned event handlers. For example, a button may raise … Continue reading

Posted in ASP.NET, C# | Tagged , , , , , | Leave a comment

Microsoft Enterprise Library for Database

What is EnterPrise Library? Microsoft Enterprise Library is a collection of reusable application blocks designed to assist software developers with common enterprise development challenges. It includes: Data Access Application Block Cryptography Application Block Caching Application Block Exception Handling Application Block … Continue reading

Posted in ASP.NET, SQL | Tagged , , , , , | Leave a comment

Implement ICallbackEventHandler Example

In this article, I have tried to explain an alternate way of achieving the AJAX functionality using ICallBackEventHandler. Many of the times we must have used core AJAX to partially update the page content. Using UpdatePanel can be another approach … Continue reading

Posted in ASP.NET, C# | Tagged , , , , | 1 Comment

Utility Class to Send email

using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; 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 System.IO; using System.Net; using System.Net.Mail; namespace Utility { public class Mail { public static bool SendMail(string ToEmailID, string Subject,string … Continue reading

Posted in ASP.NET | Tagged , , , , , | Leave a comment