Thursday, January 26, 2012

Pre-upgrade checker tool SharePoint Server 2010

- Actually this is not a tool first of all rather its a custom STSADM command.

- It is available if you have MOSS 2007 Service Pack 2 (SP2).

- This usually used to check before migrating to SharePoint 2010.

- This is to determine whether your servers in your existing SharePoint environment meet the core requirements for upgrading to SharePoint Server 2010.

Friday, January 20, 2012

Working with Resource file in SharePoint 2010

Here we will discuss how to work with resource file in SharePoint 2010. Also we will see how we can add our own custom resource file to SharePoint and how we can retrieve the resource file contents.
Resource files are really helpful if you are on multi-lingual SharePoint sites, where your site supports multiple languages. SharePoint resource files are stored normally at this location C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\Resources .

Its better to follow SharePoint resource file naming conventions like core.en-US.resx (Default file provided by SharePoint.

So we will discuss, how we will create a custom resource file by using Visual Studio 2010 and how to deploy the resource also by using Visual Studio 2010.
Steps:

Wednesday, January 18, 2012

Change Logo of a SharePoint Site

Here we will discuss how can we change the logo of a SharePoint site. Usually SharePoint 2010 logo comes by default like the below figure.
But if you want to change this logo then click on Site Actions -Site Settings as shown in the

Tuesday, January 17, 2012

Various Job Openings for Pune Location

Hi all, Here are some job opennings for various technologies like Java, J2EE, C++, Linux etc. Follow the image for details. Send your resume to corresponding email-ids given but mention my reference. My email-id is- bijaya.sahoo@kpitcummins.com

Monday, January 16, 2012

Site column in SharePoint 2010

Introduction:
In this article we will discuss what is a site column in SharePoint 2010. Before that also we have discussed some Visual Studio 2010 articles and SharePoint 2010 server object model.

Description:
- Site columns are fields that can be reused across multiple lists.

- Every site within a site collection contains its own site columns gallery.

- when you add a site column to a site columns gallery, that site column is available for use within the current site, as well as in all the child sites in the site hierarchy below.

Friday, January 13, 2012

Cloud Computing Advantages & DisAdvantages

In this post we will discuss about what is Cloud computing as well as its advantages and disadvantages.

Also you can check out my previous posts on:

- Architectural changes in SharePoint 2013

- Enable Sign in as Different User Option in SharePoint 2013

- New microblogging features in SharePoint 2013

In general terms:
Cloud computing is a system in which software programs and applications are accessed and used virtually through an Internet connection. The “cloud” actually refers to the Internet. The software is usually hosted on multiple servers in various locations. Normally the user does not know where the software is located and this is irrelevant in any case. Multiple users from the same company can access the software from anywhere that they have an Internet connection. The costs of cloud computing are normally based on a usage model, with payments being charged on a time usage basis or an occurrence basis.Cloud computing is a marketing term for technologies that provide computation, software, data access, and storage services that do not require end-user knowledge of the physical location and configuration of the system that delivers the services. End-users consume power without needing to understand the component devices or infrastructure required to provide the service.

Advantages:
1- The biggest facility that cloud computing provides is access to a variety of applications. More importantly, user has neither to install software for this nor face any storage problems.

-->
2- Flexibility: One of the major benefits of cloud computing is that there is no limitation of place and medium. We can reach our applications and data anywhere in the world, on any system.

3- Synchronization and Integrity: Business people can share their data or documents on internet and at one place. They are independent of carrying any specific hardware or software with them.

4- Cost Saving. Companies can save big by employing cloud computing as it eliminates cost for hardware and software as the company will be using the IT infrastructure of the cloud hosting company instead. In a normal setup, company needs to buy hardware and software licenses to operate a network. The amount of data of the company also dictates the amount of storage space needed. With cloud computing, company uses the resources of the hosting company to store their data and applications. Companies also pay for use of the software and programs by paying a subscription fee on an as-needed basis thereby eliminating the need to buy software licenses per employee or for the entire organization.

5- Immediate Access to Software Program. With cloud computing, an organization can have immediate access to any software or program that they need instead of going through the process of software testing and then installing the software across the enterprise as the cloud hosting company has a whole suit of software and applications available for easy access to all their subscribed clients.

Data and Application on the Go. Since data and application can be access by authorized users from any device anywhere in the world as long as there is Internet connectivity, users can have easy access to their data anytime they want just by accessing the cloud. This gives employees flexibility as they can work and access their data, as if they are physically located in their office, whichever part of the world they are located.

6- Ensure 100% Uptime. Since Cloud Hosting companies have build their infrastructure to ensure 100% uptime by providing redundant services, businesses will be guaranteed that they will experience no down-time which is critical, as any seconds of lost connectivity can mean loss of business and income for a company.

7- Easier Management of Data and Information. Since all data are located on a centralized location, data are more organized making it easy to manage. All transactions are also recorded so management can easily track activities of their employees.

DisAdvantages:
1- Dependency: Among certain limitations of cloud computing is users’ dependency on the provider. That means internet users don’t have their data stored with them.

-->
2- Risk: Cloud computing services mean taking services from remote servers. User doesn’t have control over their software. Also, there is always insecurity regarding stored documents. Nothing can be recreated if their servers go out of service.

3- Migration Problems: In case the user has to switch to some other provider, there are migration issues. It’s not easy to transfer huge data from one provider to the other.

4- Dependence on Network Connectivity. Since data and application are accessed via Internet, a downtime on network connection means that users don’t have access to data and applications in the cloud. But this is just a temporary problem which can be easily resolved and addressed by your company’s Internet Service Provider.

5- Compatibility with Company’s Existing Peripheral and Devices. An organization must make sure that peripherals such as printers are compatible with cloud computing. Otherwise, they will have to purchase new equipment that will work with cloud technology which will bring additional cost to the company.

6- Security. Companies might feel uncomfortable knowing that their data is not physically located in their premises and is stored in a virtual server which makes responsibility on the security of the data difficult to determine. Since Cloud computing is still a relatively new technology, there are still not much laws enacted on the protection of data stored in the cloud. Since everything is done via the Internet, hackers might find it easier to steal information on the cloud than on a physical server.

Thursday, January 12, 2012

Tips For test case design:

(1)A test case must be designed to be reusable i.e.It should be executed on future versions of software also.

(2)A test case must consists constant results to different testers,while executingon software under testing.

(3)A test case name must start with Verify/Validate/Check.

(4)A test case must be specific to the testing object(field)or operation in software under testing.

Wednesday, January 11, 2012

Add custom web part properties to visual web part in SharePoint 2010

Introduction:
In this article we are going to discuss how can we add custom web part properties to a visual web part in SharePoint 2010.

Details:
 First of all to create a visual web part using Visual Studio 2010, you can see my other post here. By following the above article I have created a visual web part namely CustomVisualWebPartProperties. After creating that Visual Web part, I have deleted the default
VisualWebPart1 and I have added another visual web part namely CustomWebPartProperties.
Now look at the project structure and from there open the CustomWebPartProperties.cs file as

Tuesday, January 10, 2012

Advantages of WCF

Before reading this articles you can check ABC of WCF here.
Here are some advantages of WCF in C#.Net:
-It supports HTTP, TCP, Named pipes, MSMQ,P2P bindings.
-It can be hosted in IIS, windows activation service, Self-hosting, Windows service.
-It’s made of a lot of different components, so you can create new components for security, transport, authentication.
-In WCF, there is no need to make much change in code for implementing the security model and changing the binding. Small changes in the configuration will make your requirements.


-Its faster than ASMX
-Supports Scaling/Load Balancing

What is WCF?

In C#.Net as per Microsoft “Windows Communication Foundation (WCF) is a framework for building service-oriented applications. Using WCF, you can send data as asynchronous messages from one service endpoint to another.
A service endpoint can be part of a continuously available service hosted by IIS, or it can be a service hosted in an application. An endpoint can be a client of a service that requests data from a service endpoint. The messages can be as simple as a single character or word sent as XML, or as complex as a stream of binary data.
A few sample scenarios include:


  • A secure service to process business transactions. 

Saturday, January 7, 2012

How to align "Read More" link to right side in blogger?

Read More... is a very useful in blogger while posting new blogs. You can read this tutorial for how to add read more in blogger blog?
Now if you want to make the read more link right align then:
1. Login to your blogger account
2. Click on Design
3. Then click on Edit HTML
4. Take a back up of your html template by click on Download Full Template.
5. Then check the Expand Widget Templates check box.

6. Now search for <div class='jump-link'> and replace this with <div align='right' class='jump-link'>
7. Save the Template.

Now you will able to see your Read More link right align in every blog posts.

Free Rich-Text editors for asp.net application

Here are some free rich text editors, which are also known as WYSIWYG editors.
1. FreeTextBox:
  • The most popular free ASP.NET WYSIWYG rich HTML editor.
  • Very simple to configure and use in asp.net applications.
  • It supports ASP.NET 1.1, 2.0, 3.5, and 4.0.
  • It supports Internet Explorer 6,7,8,9, Firefox 1,2,3, Google Chrome 1,2,3,4,5, Apple Safari 3,4,5, Opera 7,8,9,10.
  • It comes with free as well as paid version.
Download

2. MarkitUp jQuery Rich Text Editor

Thursday, January 5, 2012

Use Gridview to Bind list data in SharePoint 2010

Introduction:
Here we will see how we can bind a document library or a list data to a gridview or SPGridView using SharePoint 2010 object model.

Also you can check out some posts on:

- Detecting Memory Leaks in SharePoint 2010

- Cascading dropdownlist in SharePoint 2010 list using jQuery

- Content Search Web Part in SharePoint 2013

Description:
As our requirement here is to bind list or document library data to a SPGridview or a Gridview, I have taken here a Document library and a gridview. We are going to show this in a Visual Web Part. If you want to know the steps to create a Visual Web Part in SharePoint 2010 then you can follw this tutorial.

So in our Visual web part put a gridview control and set the properties and add one column as below:

<asp:GridView ID="grdDocuments" runat="server" AutoGenerateColumns="false" >
<Columns>
<asp:HyperLinkField DataTextField="Title" DataNavigateUrlFields="URL" />
</Columns>
</asp:GridView>

And now lets going to the coding side:
Below is the code that will retrieve the data from the document library and Bind the data to the gridview.

void BindDocuments()
        {
            SPWeb mySite = SPContext.Current.Web;
            SPList myList = mySite.Lists["MyDocsLibName"];
            SPListItemCollection items = myList.Items;
            //Here we will make a datatable and we will put our document library data to the data table
            DataTable table;
            table = new DataTable();
            table.Columns.Add("Title", typeof(string));
            table.Columns.Add("URL", typeof(string));

            // Create rows for each splistitem
            DataRow row;
            foreach (SPListItem result in items)
            {
                row = table.Rows.Add();
                row["Title"] = result.Name;
             
                row["URL"] = "Your site url" + result.Url; //here need to append the site url to the item url
            }
            grdDocuments.DataSource = table.DefaultView;
            grdDocuments.DataBind();
        }
The output will come as a list of items with hyperlink and whenever you will click on an item the corresponding image will open.

Tuesday, January 3, 2012

Deploy custom images to SharePoint2010

We can deploy custom images to SharePoint 2010 in the same as Custom application pages.
SharePoint 2010 stores images in the following directory.
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\IMAGES . But you can access through virtual directory http://[Server Name]/_layouts/images/.

Also you can check out some posts on:

- Use Gridview to Bind list data in SharePoint 2010

- Custom timer job sharepoint 2010

- Error Occurred in Deployment Step Recycle IIS Application Pool error in SharePoint

Here we will see how can we deploy through Visual Studio 2010. To deploy images to SharePoint first you need to create an Empty SharePoint project by choosing from the SharePoint 2010 template list in Visual Studio 2010, just same way as you create in case of Custom application pages.

Next Select the project Add -> SharePoint "Images" Mapped Folder as shown in the figure below.


Microsoft provided these options to make easier for developers. After choosing this SharePoint creates an Images folder inside the project and also it will create another folder with the same name as the name of the project as shown in the figure below.

Now you are done. Right click on the solution then rebuild the project. After successfully rebuild Right click on the solution again and Deploy Solution.

Now if you will check in C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\IMAGES this folder then, there should be a subdirectory with same name as of you project should present and inside that sub directory your images should present. You can access the images as below:
http://[Server Name]/_layouts/images/[Your Sub Dir Name]/imagename.png(this is your image name).

If you want to deploy it using wsp then follow this link.

Download the project here.