Category: My Blog

  • Blog
  • Category: My Blog

How to traverse in Collection of ASP.NET,C#.NET

I am creating a 3-tier application using the collections and I have found that it is very difficult to traverse in collection. I have used ICollection and IEnumerator interface to inherit my class.here is the class. #region Using Directive using System; using System.Collections; using System.Xml; using System.Xml.Serialization; #endregion namespace MyCollectionClass { [Serializable] [XmlRoot(“CountryCollection”)] public class

Microsoft India Blogstar Content Winners

Microsoft India has conducted Microsoft India Blogstar Contest to encourage Microsoft technology related blogger. The winners have a chance to meet Steve Balmer -CEO Microsoft Corporation.The winners are announced. Here is the link: http://www.microsoft.com/india/blogstars/winners.aspx

TRY-CATCH Block-SQL Server

In SQL server 2000, to handle sql server exception we have to use goto statement while in the sql server 2005 support the try-catch type of exception handling just like vb.net or c#.here is exmple of it. set ANSI_NULLS ONset QUOTED_IDENTIFIER ONgoCREATE PROCEDURE [dbo].[sp_InsertState]@StateId int,@Name varchar(30)ASBEGIN declare @Error Int declare @TableName sysname declare @ErrorMessage nvarchar(2000)

Easy URL routing in ASP.NET 4.0 web forms

In this post I am going to explain URL routing in greater details. This post will contain basic of URL routing and will explain how we can do URL routing in fewer lines of code. Let’s consider a simpler scenario we want to display a customer details on a ASP.NET Page so how our page