Tuesday, October 12, 2010

How to call jquery only on postback.

I had a senario where I need to call a jquery code only after postback.
When ever we add a jquery code in the HTML section it's called always as the page gets loaded. Sometimes it would be enough to execute the peice of Jqurey code only on post back.
The below code shows an example of how to call a Jquery only on postback.

Monday, September 27, 2010

How to remove Torjan Virus from laptop.

Trojan viruses are one of the most harmful virus which can halt your laptop.There are many ways you can remove this , but we always want simplest solution to avoid complications.
I would like to share the simplest tip which I used .

Friday, September 24, 2010

Difference between Asp.net webforms & Asp.net MVC.

One of the frequently asked questions about ASP.NET MVC is that how is different from ASP.NET WebForms. Is ASP.NET MVC a replacement for WebForms.

Tuesday, August 31, 2010

Reached QuaterCentury :)

I am quite happy and proud to say that I have crossed Quater Century with my articles count. I do feel good :) ...

Wednesday, August 4, 2010

How to debug HTML/CSS/JavaScript ?

If you are into web development debugging HTML/CSS/JavaScript is always painful. One common way is to introduce alert statments and check the values at runtime.

JQuery Cheat Sheet

It is not just a jQuery tip, there are some great cheat sheets out there for most languages. It's handy having every function on a printable A4 sheet for reference and luckily these are easily accessible.

For more information click on the below link.

Thursday, July 8, 2010

How to show binary image in Asp.net grid view ?

Lets start by designing the GridView first.In the below Grid view the binary Image will be displayed in the ItemTemplate Column.

Wednesday, July 7, 2010

Guide to deploy Asp.net applications.

It was really painfull searching for an good article on deploying Asp.net applications till I found one.
I would like to share this. Please go through this , This is indeed very informative.

Thursday, July 1, 2010

How to simulate Enter keypress event using JavaScript ?

Lets assume we have username and password textboxes and when the user presses the enter key on username / password then it should simulate submit keypress.

Show loading Image between postback using Javascript

Its always good idea to show loading image when the user navigates from one page to another.It can be easily achieved by adding some events and javascript functionality.

Show loading Image between postback using Jquery

In one of my articles I have explained you how to show loading Image between postback using Javascript.


How to focus first Textbox on a page using JQuery ?

Jquery really make life more easy.If I want to make first textbox focus in the form, I just need to add few lines of jquery code as below.

Friday, June 25, 2010

How to add shade effect to an Image using CSS?

Using "Opacity" attribute we can add a Shade / Transparency effect to an Image.Please go through the below example for more information.

Thursday, June 24, 2010

How to show loading image for JQuery cluetip ?

When we add Jquery Clue tip , we simply copy the JQuery files but forget to assign few properties and change the loading ‘Image path’ in the CSS file.
When we download the JQuery cluetip , we get Images , Js files as shown in the beside image.
The images folder will contain all the Images for the ClueTip including the loading Image.‘Jquery.cluetip.css’ will contain all the css properties for the ClieTip.
Map the ClueTip plugin in your web-page.

How to store Image in binary format using Linq ?

In the below example I will show how we can convert the image into binary and store it in a database.
In the example when 'Submit' button is clicked the image is copied from FileUpload control and stored in the database in Binary format.

Tuesday, June 22, 2010

How to build a perfect Resume ... ?

A good Resume will help to get better visibility in the market.It helps to grab a good opportunity.I would like to provide some tips on building a good resume .

Monday, June 21, 2010

How to generate designer.cs manually in VisualStudio ?

Whenever we update aspx/ascx file it is suppose to update the designer.cs file. However this update doesn’t occur always. Instead the update happens later when you open the disigner.cs file.

Wednesday, June 16, 2010

Rules for UK-Tier1-General or HSMP Visa Extension.

Tier 1 Extension applications are for those Applicants who already hold a Tier 1 visa. Successful Tier 1 extension applications will result in the grant of a further 2 years leave to remain in the United Kingdom.

How to upload a large file in Asp.net ?

When we try to upload a large file (usually of size in MB/GB), we get an exception indicating server not responding.
This can be avoided by using <httpRuntime> section in the Web.config file.

Monday, June 14, 2010

Why should we never deploy asp.net application with 'debug=true'.

One of the common mistakes we do is setting debug=’true’ in the deployment server.

It leads to many complications such as,

Wednesday, June 9, 2010

Alternate to setAttribute() for Internet Explorer.

While working for my project , I found a strange problem with the setAttribute() method.

//Trying to set the onclick event for the element.
document.getElementById("cvId").setAttribute('onclick','return false;');

Monday, June 7, 2010

How to resize browser window using Javascript?

When ever we design a website the biggest challenge is to test it against different browser windows.Using JavaScript we can re-size the browser window based on the resolution required.

Cut and paste the following code into the address bar of your browser (one at a time) and then hit enter:

Wednesday, June 2, 2010

How to get colors from website for branding?

This website will help us to get the color's used in any site. We just need to pass the URL and it will display all the colours used . I feel this will be very useful when we go for branding .

Tuesday, June 1, 2010

How to steal colors from Image?

While designing a web site it's always difficult to choose the color's for it. And If you have a banner / Image then its more difficult to choose as the color's should match .

Thursday, May 27, 2010

How to add javascript and css to the Asp.net datalist control ?

In the below example ,Image control and checkbox is added to the datalist .Javascript onclick event is added to the checkbox and ImageCss is changed when ever the checkBox is clicked or un-clicked.

What is the difference between Build and Rebuild in Visual Studio ?

I was always confused about this until I found the answer. I would like to share my understanding in this Blog.

Build :Compile and link only the source files that have changed since the last build
Rebuild : Compile and link all source files regardless of whether they changed or not. Build is the normal thing to do and is faster. Sometimes the versions of project target components can get out of sync and rebuild is necessary to make the build successful.

How to get Visual C# Keyboards Shortcuts?

Keyboard shortcuts can help increase productivity when performing certain tasks within the Visual Studio 2005 IDE (Integrated Development Environment). This wall poster provides the shortcut and associated description for the default key bindings setup in the Visual C# 2005 profile. The poster is provided here in both color and grayscale for you to print locally as a PDF file.

Friday, May 21, 2010

How to test web application in different browser ?

Designing web pages for multiple browsers is always a big pain. In addition to this there are a host of other issues:
• Most browsers can’t have multiple versions installed side-by-side. The newest version replaces older versions. So, you can’t have IE6 and IE7 on the same machine (unless you’re using virtual machines or unstable registry hacks).

Friday, May 14, 2010

The benifits and drawbacks of living in uk

The best way to appreciate Britain is from outside of the UK. The place has many things to recommend life there, and also some down sides too. In this blog I will put all the points.

Advantages of Living in the UK

Monday, March 1, 2010

How to get a job in UK?

Working overseas is always a dream for many IT people and UK is one the preferred destinations.
In this blog I would like to share my experience using these points.