Thursday, December 16, 2010

Introduction of SOA

What is SOA?

• Service Oriented Architecture
SOA = Enterprise Application Integration + Governance
• Abstracts software functionality as loosely-coupled, business-oriented Services
• Business Driven Approach is a key of SOA.
• Application can contain services which implement business process in flexible way without programming.
• IT Architecture style that supports Service Orientation

Service

• Repeatable business task
• Has Service Description
• Can be governed by declarative policies

Service Description

• Used by a service consumer for searching, binding and invocation.
• Used by service provider to deliver the quality of service requirements for service consumer.

Service Orientation

• A way of integration your business as linked service

SOA from Different Point Of View

Business - Capabilities that business wants to expose as a set of services to clients or partner organization.
Architecture - Architecture Style requires service provider, requestor, and service description.
Implementation - Programming Model completes with standard, tools, methods and technologies as Web Services.
Operation - A set of agreement between service provider and service consumer.

Monday, December 6, 2010

SharePoint 2010 Overview

Sharepoint Overview

• SharePoint 2010 is the business collaboration platform for the Enterprise and the Internet.
• When people need to work with other people, with content and information, or with line-of-     business data, they can use the rich, out-of-the-box set of integrated capabilities in the SharePoint 2010 platform.
• People can also customize these capabilities to address specific business needs and integrate them with other products and solutions.
• Using the same set of capabilities and tools, companies can deploy SharePoint 2010 both intranet and internet.


There are three main objectives of using SharePoint 2010. They are.
   o Deliver the best productivity
   o Cut costs with a unified infrastructure
   o Rapidly respond to business


Capabilities Area
SharePoint 2010 helps people work together in new and effective ways with a rich set of six integrated capabilities areas. 

Sites -Provides a single infrastructure for all your business Web sites.

Communities -Delivers great collaboration tools—and a single platform to manage them.

Search -Cuts through the clutter. Find the information and contacts.

Content -Makes Content Management easy. Such as document types, automatic content sorting.

Insight -Gives everyone access to the information in databases, reports, and business applications.

Composite - Offers tools and components for creating do-it-yourself business solutions.


I have just started to learn Sharepoint 2010. This is reference from SharePoint Evaluation Guide.

Thank you.

Monday, November 29, 2010

What is WCF?

- Windows Communication Foundation is one of the API.
- Interoperability which is the ability of diverse the systems and organization can work together.
- Service Layer between application layer and business layer in three tier architecture.
- A combined features of Web Services, COM+, Remoting, MSMQ
- A common platform for all .Net communication.

- ABC is the three major points of WCF.
     o Address (Where)
           It is mandatory for WCF.
           Specify the location of service which is exposed for client
           Http, TCP, NamedPipe, MSMQ
           Defined with Uniform Resource Identifier (URI)
     o Binding (How)
           Specify how the client access the service.
           BasicHttpBinding, netTcpBinding, wsBinding
     o Contract (What)
           Specify what are the functions that service can do.
           ServiceContract (Interface)
           Must have service class to implement the service contract
           DataContract (get, set) which can be primitive data type or complex data type.
           OperationContract which is the method of ServiceContract.

- Must have endpoint
- Client can consume the services from the service host through endpoint.


This is just my knowledge.

Freeze Columns and Header Row

Last week, I got headache for freezing the first column and the header row in gridview. So I researched to fix the columns and row simultaneously by setting the <div> width, height and scroll as auto. And I write some in stylesheet and I did add some code in code behind. Finally, my griview got fixed columns and fixed rows. Below is the steps to do:

Step1 :  StyleSheet1.css
/* Div container to wrap the datagrid */
div#gridviewstyle {
width: 850px;
height: 400px;
overflow: scroll;
border: solid 1px black;
}

/* Locks the left column */.testlock{color:#5E9709;
background-color:#D6F4DC;
border-right: 1px solid silver;
text-align:center;
position:relative;
width:20%;
cursor: default;
 left: expression(document.getElementById("gridviewstyle ").scrollLeft-2);
}

 /* Locks table header */
.testlockvertical
{
background-color:#D6F4DC;

text-align:center;
border-right: 1px solid silver;
position:relative;
cursor: default;
top: expression(document.getElementById("gridviewstyle ").scrollTop-2);
z-index: 99px;
}


Step2 : Default.aspx
We declare StylSheet1.css to our web page. So we can use the styles in that stylesheet.
<link href="../../StyleSheet1.css" rel=stylesheet type="text/css" />

<div id="gridviewstyle">
<asp:GridView id="GridView1" runat="server" CssClass="Grid" UseAccessibleHeader="True" AutoGenerateColumns=True OnRowDataBound="GridView1_RowDataBound1">
</asp:GridView>
</div>


Step3 : Default.aspx.cs
/* For Autogenerated first columns freezing*/

protected void GridView1_RowDataBound1(object sender, GridViewRowEventArgs e){
e.Row.Cells[0].CssClass = "testlock";
e.Row.Cells[0].Width = Unit.Pixel(200);
}

Step4 : Default.aspx.cs
/* I put the binding gridview as seperate function.*/
/* For Autogenerated Header rows freezing.*/
private void binddata(DataView dv)
{
      GridView1.DataSource=dv;
      GridView1.DataBind();

      GridView1.HeaderRow.CssClass = "testlockvertical"
      GridView1.HeaderRow.Cells[0].CssClass =
"testlock";
}

That's all. After that, you can see your gridview first column and header row are freezing.

HAPPY CODING!!!!!!!!!