Skip to main content

Posts

Showing posts from 2014

jQuery Dialog for ASP.NET

A jQuery dialog is a lightweight pop-up which can be used in ASP.NET to get the confirmation from the user before doing some task. Here I shall demonstrate how to work with jQuery dialog in ASP.NET. First of all we need to import the jQuery core and UI libraries in the head section of the master page Then add the jQuery dialog to the page Now we will design the popup and the buttons Code behind Happy Coding :)

How To Setup a USB Flash Drive to Install Windows 7, 8

If you are going to install windows from USB Flash drive, you'll need a USB Flash drive with a minimum capacity of 4GB and an ISO image of the Windows version you are going to install.  Format your USB Flash drive Download and install  Windows 7 USB/DVD Download Tool Locate the ISO image of windows Select USB device Choose your flash drive and click Begin copying The process may take little time to complete After the copying is finished, you can see the files on the flash drive as you would if you opened the installation disc. Now you can start the installation on any computer that allows you to boot from a USB drive. Update (2015/08/13) This method works with all variations of windows 10.

Method Overriding with C#

Method overriding is a feature that allows you to invoke functions (that have the same signatures) that belong to different classes in the same hierarchy of inheritance. Let's understand method overriding using few examples. Output Above code consists of base class A and a derived class B. Class A consists of method Show(). Class B hides the function Show() it inherited from the base class A by providing its on implementation of Show(). In the above code we first created object of type A. Using the reference variable “a” we invoke the function Show(). As expected,  Show() of class A is executed because the reference variable “a” refers to the object of class A. Then we created an object of Derived class B and storing its reference in the reference variable “a” of type A. Using the reference variable “a” we invoke the function Show(). Since “a” contains a reference to an object of type B we would expect the function Show() of class B to get executed. But that does no