Posts

Showing posts from December, 2012

SharePoint 2013 Certification

Image
Below is the links to know about initial release for Certifications in SharePoint 2013:

Exam 70-331: Core Solutions of Microsoft SharePoint Server 2013 http://www.microsoft.com/learning/en/us/Exam.aspx?ID=70-331

Exam 70-332:Advanced Solutions of Microsoft SharePoint Server 2013 http://www.microsoft.com/learning/en/us/exam.aspx?ID=70-332


Web Part with Custom Tool Part in SharePoint

Image
To know about Basics of Creating a Custom Web Part with Validations and Deploying it in the SharePoint, read this article.
In this article, we will know how to create a custom web part in SharePoint with Custom Tool Part (Custom Properties).
Before creating a custom web part with custom tool part, we will know about the basics of Custom Tool Part in SharePoint.
What is custom tool part?
The Custom tool part is part of the web part infrastructure, which helps us to create a custom user interface for the web part properties which is different from default property pane.


Difference between Standard Tool Box and Custom Tool Part Properties
Below is the difference between the Sandbox and Custom Tool Part properties in a web part:
Sand Box Tool Box Properties:This is the tool box that comes by default and it contains Text Boxes, Check Boxes and Drop down lists to fill or select the data. But this tool box does not contain any dynamic controls for displaying the dynamic data from the SharePoint li…

How does Ribbon in SharePoint 2010 works?

A file called CMDUI.XML stays at the web front end which contains the Out-of-Box site wide Ribbon implementation i.e. all the Ribbon UI for the entire site. In addition to this you have a CustomAction for each ribbon component.
These CustomActions have CommandUIExtentions block which has CommandUIDefinitions and CommandUIHandlers which make up the activity of the ribbon component.
So, when the ribbon is loaded the CommandUIDefinition merges with Out-of-Box definition in the CMDUI.XML

Consuming a web service using ASP .NET

Image
To know about basics of web service read this article.
To know about creating a web service using ASP .NET read this article.
Background: In the previous article we have learned about creating a web service. Now in this article, we will learn how to consume a web service using asp .NET. Real Time Example: Nowadays mobile application (Mobile Apps) are used widely all the users. Take a scenario, we install the “Weather” gadget in our mobile and check the weather of a particular place. Think where we are receiving this weather information? It is actually we are consuming the web services. We will select the region/place to see the weather, a web service will be called and the weather info is displayed. Hence, Web Services are hosted somewhere and via internet we are consuming the data through the web service.
Implementation: 1. Create an ASP .NET web application with a simple design as shown below: 2. Now, we have to add the web service reference to this Project (Here we use the web service created…

Creating Web Service using ASP .NET

Image
To know about basics of web service read this article.

1.Create an ASP .NET web service application using Microsoft Visual Studio. 2.Take a scenario that we have to convert Celsius to Fahrenheit and vice versa.
3.Below is the code for our scenario: using System; using System.Web; using System.Web.Services; using System.Web.Services.Protocols; [WebService(Namespace = "http://ConversionWebService.org/Temp")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] public class Service : System.Web.Services.WebService { public Service () { //Uncomment the following line if using designed components //InitializeComponent(); } [WebMethod(Description = "Convert Celsius to Fahreinheit")] public double ToFahreinheit(double C) { return C * (9.0/5.0) + 32; } [WebMethod(Description = "Convert Fahreinheit to Celsius")] public double ToCelsius(double F) { return (F - 32) * (5.0/9.0); …

Basics of Web Services

Image
Introduction:
In this article, we aim at learning the basics of web services and understand how does web service works. WebService: 1.Web services are the easy way to create communications between different applications of different platform. 2.Web Services extend these models a bit further to communicate with the Simple Object Access Protocol (SOAP) and Extensible Markup Language (XML) to eradicate the object-model-specific protocol barrier.
Components of Web Service: All the standard Web Services works using following components SOAP (Simple Object Access Protocol) UDDI (Universal Description, Discovery and Integration) WSDL (Web Services Description Language) SOAP (Simple Object Access Protocol): SOAP is an XML-based protocol to let applications exchange information over HTTP. Simply, SOAP is a protocol for accessing a Web Service. It is a communication protocol and it is a format for sending messages.It is designed to communicate via Internet (W3C standard)It is platform and language indep…

Captcha using Java Script

Image
Background:
Now a days, all the web sites requires inputs (contact us, feedback, etc.) from the end users. But many sites face a problem of spam or unwanted or junk messages. To avoid this we have a java script code which will generate the random codes which should be entered by the users manually. This avoids the spam being automated or entered by the unwanted users being entered in to the site.
Solution: Below is the code which consists of Java script implemented in HTML page for reference.
Random Message Below is the screenshot of the same:
Here is the link to download the image and hmtl file. Captcha using JavaScript.
Hope this component helps using it in your website to avoid spam and unwanted messages.

Create Site Collection in Separate Content Database in SharePoint

Image
Problem: When a “Site Collection” is created in a web application, then the proceeding Site Collections created in the same “Web Application” will use the Same Content DB. This creates problems in the following scenarios: 1.Size of the one Site Collection grows large then it will affect the other Site Collection too. The
reason being maximum size of a Content DB for a Site Collection with good performance is 200 GB
(referred some MSDN articles). 2.During migration/archival/splitting of content DB.

Solution: The solution for the above problem is to “Create Site Collections with Separate Content DB for each Site Collection”. But by default SharePoint allows you to create new site collections in the Same Content DB which is used by the web application (one created first – Top Level Site Collection) Using Central Administration page: 1.Suppose that we have created a Top Level Site Collection with content DB named “WSS_Content_1000”. Now our scenario is to create a new site collection in the same web…