Featured post

Print pyramid shape by numbers between 1 to 9 in C#

Hello friends, try below code for printing Pyramid shape by any numbers between 1 to 9.
E.g. If number=4, print pyramid shape as below:

   1         21        321     4321 
    public class Program
        static void Main(string[] args)
            Console.Write("Enter any number between 1 to 9 : ");
            int num = Convert.ToInt32(Console.ReadLine());

            for (int i = 1; i <= num; i++)
//printing space
                for (int j = i; j <= num - 1; j++)
                    Console.Write(" ");

                    int s = i;
                    for (int k = 0; k < i; k++)
//printing numbers


Please leave your comments.

How to start a free blog with Blogger in simple steps

I know most of you always have a thought to start your blog. Even many times, I tried to start my blogs to share my ideas and expertise over the net but most of the times my plan remains plan only as it required lots of coding skills. But today starting a blog is very simple with the help of different blogging platforms, such as Blogger, WordPress, Tumblr and more. I have put this guide for you, to setup your blog in easy steps. Here’s a simple step-by-step guide for creating a blog on Blogger with screenshots: Go to your browser and enter the URL You can see below screen on your browser.
To create blog, you need to login into Blogger. You can “SIGN IN” either by your existing Google account or you can create new account. In case you want to create new account, click on “CREATE YOUR BLOG” button. It will open a window like below: Enter your Email or phone as user name & click on “NEXT” button. Enter your Password & click on “NEXT” button. You will be redirect…

What is .NET? Benefits of .NET Framework.

In this article, we will cover What is .NET Framework. What are the benefits of .NET Framework. & high level structure of the framework. What is .Net .NET is a set of software technologies for connecting information, people, system and devices. It is a computing platform developed by Microsoft. The technology was based on Web Services. .NET is an Object Oriented Framework for developing Windows and Web based applications Applications on .NET are easier to build, deploy and integrate with other networked systems. .NET includes a large class library named Framework Class Library and provides language interoperability across several programming languages.
(High Level Diagram)
Why another programming platform Simplify Application Development There are several limitations with the current development tools and technologies that reduce developer productivity. Development should become easier because the .NET Framework provides a new set of tools, including a large set of object-oriented, extensi…

How to verify/add a blogger blog in Google Webmaster Tool or Search Console. How to verify your site's ownership.

In this article we will learn how to verify & add blogger blog in Google Webmaster Central. You need to follow below steps: Login to your blogger Account. Click on Settings -> Click on search preferences. Go to Crawlers and indexing section. Click on Editlink against “Google Search Console”. It will take you to webmaster tools page. (refer below screen)

You might see either “ADD A SITE” or “ADD A PROPERTY” button on the page. Click on it. It will open a pop-up window as below. Enter your website address and click on “Add” button. (I have given my blog address for your reference).

It will open a Webmaster Central page, having two options to verify your website as below screens: Go to 2nd tab “Alternate methods”. Here select “HTML tag” option. It is the best option to verify your website. You need to copy the given Meta tag and paste it into your website home page (refer below screen).

Difference between ASP and ASP.NET

The following table lists the major differences between ASP and ASP.NET:
ASP ASP.NET ASP stands for Active Server Pages which is based on procedural and event-driven programming model. ASP.NET is based on Object oriented and event-driven programming model. ASP applications are interpreted. ASP.NET applications are compiled. ASP does not support the Code-Behind feature. Separation is attained using COM technology, where the logic is encapsulated inside a COM object. ASP.NET provides a better separation between layout and logic using the Code-Behind feature. In ASP, state management of controls is very complex and involves extensive programming. ASP.NET provides effortless state management of controls using the EnableViewState property of the Control class ASP files have .asp file extension ASP.NET files have .aspx file extension.

What is Scope_Identity() & Ident_Current() in Sql Server

SCOPE_IDENTITY(): It is useful when we want to know that during inserting of a record what is the current ID value of a row. Lets say we are inserting a record in Student table which contains a column StudentId which is auto generated. So, in this scenario if we want to know what will be the StudentId we can get it by using scope_identity(). It will return the last identity value created in the current session.
selectscope_identity()//execute this after inserting the record.
IDENT_CURRENT(): It returns the last IDENTITY value produced in a table, regardless of the connection that created the value, and regardless of the scope of the statement that produced the value.
It is not limited by scope and session, it is limited to a specified table. It returns the identity value generated for a specific table in any session and any scope.
If we want to know the last inserted record in any table regardless of the scope then, execute following:
selectIDENT_CURRENT('Student')as Cu…