Posted on October 20 2009 Read more...

WCF Architecture

Following is the diagram for WCF architecture 1. Contracts - It contains information about what service does and type  of information it will make available. a) Data - A data contract includes the data that will be exchanged by the service. The service and the client do not need to agree on the types, but they ...
Posted on October 20 2009 Read more...

Naming Conventions and Standards – C#

1) Use Pascal casing for type and method names and constants: public class YourClass { const int ConstantVariable = 100; public YourMethod( ) {} } 2) Use camel casing for local variable names and method arguments. Use p prefix for parameterized vairables: int intNumber; void MyMethod(int pintNumber) {} ...
Posted on October 20 2009 Read more...

Generate Paging – Custom function

Here it goes private int mstrPageSize = 1; private int mstrTotalRecords = 1; private int mstrCurrentPage = 1; public int PageSize { get { ...
Posted on October 20 2009 Read more...

Reading event log – Only exception part

Here is the few line code try { int intCount = 1; EventLog EventLog1 = new EventLog(); ...
Posted on October 19 2009 Read more...

whats new in asp.net 4.0

1) Permanent redirect - for HTTP 301 Moved Permanently you can now use RedirectPermanent("yourpage.aspx"); 2) Meta Properties- Now you can use page.MetaKeywords and page.metaDescription for setting up meta tags. 3) Compressing session state - ASP.NET 4 introduces a new compression option for both kinds of out-of-process session-state providers. Example when compressionEnabled is set to true ...
Posted on October 15 2009 Read more...

Singelton pattern

Singelton pattern is required where we need single instance of class. Example in financial domain applications there is major requirement of security and class need to have single instance and no other can use same instance of the class. We define singelton pattern as - Ensure a class has only one instance and provide a global point of ...
Posted on October 15 2009 Read more...

Difference between interface and abstract classes

Following are the 6 differences between abstract classes and interfaces :- 1) A class can implement as many interfaces, but an subclass at most one abstract class. 2) Abstract class can have non abstract methods but all methods of interface are abstract. 3) Abstract class can declare and use variables but interface cannot. 4) Interface don't have different access ...
Posted on October 15 2009 Read more...

Creating web services in SQL server

For creating web service in SQL server you need to understand http end points. So what is http end points ? It provide an interface using TCP or http for SOAP. Web Services in sql server return rowset data, scalar values , messages and errors. This all can be done withhout IIS. For creating web service in ...
Posted on October 15 2009 Read more...

Why HR Managers?

On this blog I would like to ask why HR managers needed in an organization ? Are they needed for Recruitment ? Are they needed for payroll management ? Are they needed for appraisel ? All these things can be outsourced as well, then why we need an HR manager in organization itself ? What ...
Posted on October 15 2009 Read more...

Good Managers – Manage Yourself ?

To be posted soon !!
Get Adobe Flash playerPlugin by wpburn.com wordpress themes

Powered by Sachin Jain

Powered by Olark