Cloud Computing for beginners || Basic for Cloud Computing || What is Cloud Computing ||Benefits of Cloud Computing || Types of Cloud Computing


Cloud computing :
            Cloud computing  has become the new buzz word driven largely by marketing and service offerings from big corporate players like Google, IBM and Amazon. Cloud computing is the next stage in evolution of the Internet
Cloud computing is where entire businesses and thousands of employees will run their computer tools as online rented products. All of the processing work and file saving will be done "in the cloud" of the Internet, and the users will plug into that cloud every day to do their computer work.
cloud computing  à  means accessing the database resources via internet.

Examples of Cloud Computing Services:
            Web-based email services like Gmail and Hotmail deliver a cloud computing service: users can access their email "in the cloud" from any computer with a browser and Internet connection, regardless of what kind of hardware is on that particular computer. The emails are hosted on Google's and Microsoft's servers, rather than being stored locally on the client computer.
Types of cloud computing:
There are three types of cloud computing
1.Public Cloud
2.Private Cloud
3.Hybrid Cloud
4.Community Cloud
Public cloud:
In public cloud system ,A third party data center provide both disk space and computing power for all the application software. Google apps and Amazon web and IBM is the  most popular public cloud computing service providers.
Hybrid Cloud:
Hybrid Cloud means either two separate clouds joined together(Public,Private) or a combination of virtualized cloud server instances used together with real physical hardware.
           The most correct definition of the term “Hybrid Cloud” is probably the use of physical hardware and virtualized cloud server instances together  to provide a single common service. Two clouds that have been joined together are more correctly called a “combined cloud”.
Community Cloud:
 If several organizations have similar requirements and seek to share infrastructure to realize of cloud computing, then a community cloud can be established. This is a more expensive option as compared to public cloud as the costs are spread over fewer users as compared to a public cloud. However, this option may offer a higher level of privacy, security and/or policy compliance.
Private cloud- Private cloudis different from public cloud, Here we need to set up our own data center and also bear all the installation & maintenance cost, and at the same time we have complete control of all our data. when compared to Public cloud this system provides more security and privacy, but it is more expensive cloud solution to public cloud.

Benefits  Of Cloud Computing :

1.       1.Easy to maintain as they don’t have to be installed on each user’s computer.
2.       By using cloud computing we can store large amount of data from anywhere without worrying about their maintanence.
3.       3.Allows the enterprise to focus on its core business.
4.       Thousands of virtual machines and applications can be managed more easily using a cloud-like environment.
5.       5.Location independence, so long as there is access to the Internet.
6.       6.Increased competitive advantage.
7.       7.Increased security at a much lesser cost.

GridView Sorting and Paging in Asp.net || How to Sort GridView rows in Asp.net || GridView onsorting Event and onpageindexchanging Event in Asp.net:


For GridView paging and sorting write the following code in source file of aspx webpage:
<asp:GridView
              ID="grdCause"
              runat="server
              EnableSortingAndPagingCallback="True"
              AllowPaging="True"
              AllowSorting="True"
              onpageindexchanging="grdCause_PageIndexChanging"
              onsorting="grdCause_Sorting"
         >
</asp:GridView>

The following method is for Loading the Gridview .In this method am taking dataset and bind that dataset to Gridview.
ExecuteProcedure is the method in my sqlhelper class.For that method Click here.
private void LoadGrid()
    {
       
        DataSet ds = dal.ExecuteProcudere("CauseSelectAll", ht);
        grdCause.DataSource = ds.Tables[0];
        grdCause.DataBind();
    }

Gridview pageindexChanging Event  for paging:
protected void grdCause_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {
        grdCause.PageIndex = e.NewPageIndex;
        LoadGrid();
    }

Gridview Sorting  Event  for Sorting:

    protected void grdCause_Sorting(object sender, GridViewSortEventArgs e)
    {
        string sortExpression = e.SortExpression;

        if (GridViewSortDirection == SortDirection.Ascending)
        {
            GridViewSortDirection = SortDirection.Descending;
            SortGridView(sortExpression, DESCENDING);
        }
        else
        {
            GridViewSortDirection = SortDirection.Ascending;
            SortGridView(sortExpression, ASCENDING);
        }


    }

Use the following method for Sorting:
private void SortGridView(string sortExpression, string direction)
    {
        //  You can cache the DataTable for improving performance
        LoadGrid();
        DataTable dt = grdCause.DataSource as DataTable;
        DataView dv = new DataView(dt);
        dv.Sort = sortExpression + direction;

        grdCause.DataSource = dv;
        grdCause.DataBind();

    }
    private const string ASCENDING = " ASC";
    private const string DESCENDING = " DESC";

    public SortDirection GridViewSortDirection
    {
        get
        {
            if (ViewState["sortDirection"] == null)
                ViewState["sortDirection"] = SortDirection.Ascending;

            return (SortDirection)ViewState["sortDirection"];
        }
        set { ViewState["sortDirection"] = value;
 }
    }

SetUp a WebApplication Step By Setp Process | Web Application Setup in Asp.Net:


Steps To  Setup A Web application In Visual Studio 2010

11.    Open VS2010 à File à New Project à Web application.
22.    Create Your Own web application.
33.     Set the Configuration module Debug to release mode and then Build the project.
44.     Right click on the Solution Explorer à Add à  New Project à Other Project Types à Select Setup and    DeploymentSelect Visual Studio Installer à Select Web Setup Project.

Name the WebSetup Project as your Wish According to your Requirement. Now A Web setup project is added to your Solution. Right click on the setup project .
A window is displaying with four Options.

1.          Project Output.
2.         File
3.         Merge Module.
4.         Assembly.

Select Project output in this Window you have to add Primary Output and what are the files you want to include in your setup. Like content files, Documentation files etc.

In the Solution Explorer Click the Setup project and observe the Editors. File System editor,   User Interface Editor, Registry Editor, File Types editor,Custom action Editor.

Now we have to work on these Editors.

File System Editor:- In this Editor You have One Folder Called Web Application Folder. Right Click on this folder add the files like images, Connection String files, rtf   files which   we are using in Setup.



User Interface Editor:  By using this Editor You can add different type of windows which user can interact with your application. Ex: Installation Window, Warning Message, Installation Address, License File, Read file etc.


From the Customer Information Window You can specify the Organization Number, Product Key to the User. This Product Key you can generate through Installer Class. That will explain In my next article.


Registry Editor: The Registry Editor allows you to specify registry keys and values to be added to the registry of the target computer. By default the Registry Editor displays a standard set of registry keys that correspond with the standard Windows registry keys: HKEY_CLASSES_ROOT, HKEY_CURRENT_USER, HKEY_LOCAL_MACHINE, HKEY_USERS, and HKEY_PER_USER. For Setup projects, additional keys that match the Manufacturer property for the project are displayed under HKEY_CURRENT_USER\Software and HKEY_LOCAL_MACHINE\Software.
Playing with registry need more experienced person otherwise it may course some trouble in target computer, but you can add or remove keys according to what your project needs.

To add a registry key select a top level node, in the action menu click new key, then type the new name and edit properties of the key in the properties window as necessary.
To add a sub key select a key node, in the action menu point to new and then key and you can edit its properties from the properties window. Also you can remove a key by selecting it and then click Delete from Edit menu. Also you can add stringbinary, and DWORD values. During installation the values will be written to the registry and any existing values will be overwritten by the values that you specify.

Launch Conditions Editor: By Using This Editor You can specify the Launch Conditions of your Application on target System. Example: frame work condition (minimum, maximum), Version of IIS (minimum, maximum).

After Completed these Steps build your setup file. And right click on the setup file click Install it will install the .msi installer along with your product setup file.



Right click on Your Solution à  select Open  Folder in Windows Explorer  à open Bin/Debug directory à You can Find Setup, msi installer of setup file. Double click on your setup file and it will install your product.