Skip to main content

Posts

Showing posts from April, 2013

Crystal Report Merge Module

The following section shows how to create a setup file for Crystal Reports Client side installations using Merge Modules.  we are creating a separate setup file for client side installations using Crystal Report Merge Modules.

.Net Interoprability

You would have theoretically learnt the .Net supports Interoperability feature. We know Interoperability is the ability of two systems to communicate with each other, The first system could be built on .Net framework and the other system can be of some other technology. Lets practically learn the concept of .Net Interoprability using Visual Studio tool between tow languages C# and VB in .Net. Step 1: Create a simple csharp .Net library which contains a method sayHello() as shown below : using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace interoperability_CsLibrary { public class Class1 { public void SayHello() { Console.WriteLine(“Hello”); Console.ReadLine(); } } } Step 2: Lets see how to call the C# sayHello() function in a VB project, Create a simple VB code Module1 where I want to use the csharp method. Import the library interoprability_CsLibrary and invoke th...

Garbage Collection in .Net

The .NET Framework uses automatic garbage collection to manage memory for all applications. When you use the new operator to create an object, the object’s memory is obtained from the managed heap. When the garbage collector decides that sufficient garbage has accumulated that it is efficient to do so, it performs a collection to free some memory. This process is fully automatic, but there are a number of factors that you need to be aware of that can make the process more or less efficient.

Coding guidlines for .Net developers

Things to be taken care by developers while writing code or designing different layers Choose your UI elements carefully Optimize Viewstate State management should be effective and optimized well Well Managed Caching Reduce round trips to server Utilize client side script effectively Consider Asynchronous calls Consider Partial / Ajax calls to make the portion of the page update Consider pagination for large record sets and provide server side pagination if possible.

ASP.NET Textbox Tips

This page is to describe all tips and tricks of asp.net controls. We have number of asp.net server controls which we use regularly and may miss few things and will search a lot for the tip or trick to handle the situation such situation we will discuss regularly.

Asp.Net Pagination

Pagination is the process of displaying a huge records by splitting them into different pages. This can be better explained by a example. Consider you have 10000 records in a table you want to show them to the end user when he requests. The very simple thing is to display all of them by fetching from database with a simple select * from <Table> query. OK fine you are done and your job is over. You have checked in the code and your Lead or some testing team person is verifying your features implementation. Suppose your Manager saw the application and the particular feature. Can you imagine what might be his reaction to that.

LINQ To XML

 XML means Extended Markup Language, which is universal format and can be accepted by any programming language more readable and understandable markup so far by humans as well as machines. We will see how to use and work with XML in our daily routine with C#.Net.

Group By in LINQ

Many of us face the problem of grouping elements by different attributes from C# code. Now we are here to solve these problem and provide the best practices when one wants to group different types of data by using the very best features provide microsoft .net technologies. i.e. LINQ.

SqlBulkCopy in c# .Net

Microsoft .NET has very good functionality to implement. It provides all sorts of functionality to achieve our feature needs. Only thing is we need to know which namespace and which class we should use for it.            One of them and very useful class provided by microsoft is SqlBulkCopy it is under namespace System.Data.SqlClient.

Creating WCF Service and Hosting in IIS

Create WCF Service Create WCF service. Open visual studio select new project and then from WCF tab select WCF Service application to create a new WCF service.