Wednesday 29 February 2012

Improve Perfomance in ASP.net and make it fast your Page.


While developing any web site, we should keep some points in our mind.


1) Set debug=false under compilation as follows:

<compilation default Language="c#" debug="false">

2) Use Server.Transfer instead of Response.Redirect.

Introduction to WPF(Windows Presentation Foundation) in .NET



Windows Presentation Foundation (WPF) is a next-generation presentation system for building Windows client applications with visually stunning user experiences. With WPF, you can create a wide range of both standalone and browser-hosted applications.

Monday 27 February 2012

Detect Click into Iframe using JavaScript


<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Friday 24 February 2012

Create an Excel 2007 file and change font for the ceel in the Excel in VB.NET 2005



From the following sections you can find how to create an Excel 2007 worksheet through VB.NET 2005. For creating an Excel 2007 worksheet in VB.NET 2005 , you have to add the Microsoft Excel 12.0 Object Library in you project.

Thursday 23 February 2012

How to export DataTable to CSV File Format


Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs)

    Dim Con As String = ConfigurationManager.ConnectionStrings("ConnectionString").ToString()

How to print windows form in .NET


First, we created a simple form with a few controls, that do nothing, so that the form would have something on it.  We added a Print Form command button and called it btnPrintForm.

Monday 20 February 2012

PictureBox in VB.NET



The Windows Forms PictureBox control is used to display images in bitmap, GIF,icon, or JPEG formats.
You can set the Image property to the Image you want to display, either at design time or at run time. You can programmatically change the image displayed in a picture box, which is particularly useful when you use a single form to display different pieces of information.

Random Generator in VB.NET


In some situations we have to generate Random numbers in our VB.NET applications for different purposes. In these situations we have to use Random Class for generating the Random numbers. The Random Class in VB.NET

VB.NET Option Explicit [On | Off]



Option Explicit statement ensures whether the compiler requires all variables to be explicitly declared or not before it use in the program.
Option Explicit [On Off]

On Error GoTo in VB.NET


On Error GoTo statements is an example of Vb.Net's Unstructured Exception Handling . VB.NET has two types of Exception handling . Structured Error Handling and Unstructured Error handling . VB.NET using Try..Catch statement for Structured Error handling and On Error GoTo statement is using for Unstructured Error handling.

Difference between Abstract class and Interface in C# .Net



What is an Abstract Class?

An abstract class is a special kind of class that cannot be instantiated. So the question is why we need a class that cannot be instantiated? An abstract class is only to be

Sunday 12 February 2012

What is a CLR?



Full form of CLR  is  Common Language Runtime and it forms the heart of the .NET framework.All Languages have runtime and its the responsibility of the runtime to take care of  the   code   execution of   the  program.For   example