Microsoft.NET

Use DataReader Cleverly

IntroductionADO.NET DataReader is a read only and forward only cursor that allows you to iterate through the records very fast. In terms of performance DataReader is possibly the fastest way to fetch and iterate the rows. However, if used incorrectly it can cause some troubles. This article throws light on some of such things to Use DataReader Cleverly

Which Path Would You Travel

This Article explains how to obtain FilePath, Directory in ASP.net and there number of ways to handle this. .NET Classes used : System.IO System.IO.Path The various path-related properties of the Request Object. Fortunately, The ASP.NET Request object is equipped with a number of properties with regards to this. They are: ApplicationPath : Gets ASP.NET application’s Which Path Would You Travel

State Managements in .NET

State Management Techniques in ASP.NET Developer is forced to implement various state management techniques when developing applications which provide customized content and which “remembers” the user. Here we are here with various options for ASP.NET developer to implement state management techniques in their applications. Broadly, we can classify state management techniques as client side state State Managements in .NET

Generating a strong name key pair file programmatically using C-Sharp

using System.Security.Cryptography; using System.IO; namespace AssemblyKeyGeneration { class GenerateStrongNameKey { /// <summary> /// Generating a strong name key pair file programmatically /// </summary> /// <param name=”fileName”>Fullname of the keyfile with full path, which will be generated.</param> /// <param name=”keySize”>RSA key size. Default is 1024. Range is 384-16384 in 8 bit increments.</param> public static void CreateKeyPairFile(string Generating a strong name key pair file programmatically using C-Sharp

How to Set Debug and Release Configurations in VS2008

Yesterday i was working on a class library project in Visual Studio 2008 and after successful build, dll was creating in Release folder of project again and again without pdb files. I need assembly in debug mode but could not found in properties that where to set debug mode in place of release mode. After How to Set Debug and Release Configurations in VS2008

Get current page name(ASP.NET)

This function can be used to retrieve the current page:s name, i.e default.aspx, hello.aspx or whatever. public string GetCurrentPageName() { string sPath = System.Web.HttpContext.Current.Request.Url.AbsolutePath; System.IO.FileInfo oInfo = new System.IO.FileInfo(sPath); string sRet = oInfo.Name; return sRet; }

Framework 3.0

This article explains  about the Overview of .NETFRAMEWORK 3.0 Introduction As all of us know that .Net Framework 3.0(formerly known as code named winfx)  is the next generation .NET Framework that sits on the top of 2.0  by adding some enhancements. Being dotnet developers/MS Technology Developer we are curious to update the next generation web Framework 3.0

Events of ASP.NET Page

This article explains what happens When a page request is sent to the Web server, whether through a submission or location change, the page is run through a series of events during its creation and disposal.. So let’s examine in detail the ten events of an ASP.NET page, from creation to disposal. We will also Events of ASP.NET Page

Exception Handling

Exception handling is an in built mechanism in .NET framework to detect and handle run time errors. Exceptions are defined as anomalies that occur during the execution of a program. The .NET framework provides a rich set of standard exceptions that are used during exceptions handling. Exception handling is one of the major feature provide Exception Handling

Dispose and Finalize

When the .NET framework instantiates an object, it allocates memory for that object on the managed heap. The object remains on the heap until it’s no longer referenced by any active code, at which point the memory it’s using is “garbage,” ready for memory deallocation by the .NET Garbage Collector (GC). Before the GC deallocates Dispose and Finalize