Posts

Showing posts from 2010
My new blog present here.

Featured Post

Insights into Sitecore Search: A Definitive Introduction

A key component of digital experience management is effective information retrieval. A simplified approach is required for websites, applications, and platforms containing a lot of material so that consumers can easily get the data they require. This need is met by Sitecore, a well-known name in the field of digital experience platforms (DXPs), which provides powerful and comprehensive search functionality. We will travel into the realm of Sitecore Search in this article, learning about its capabilities, architecture , and the enormous value it offers both developers and end users. Introduction to Sitecore Search    A headless content discovery platform powered by AI , Sitecore Search enables you to build predictive and custom search experiences across various content sources. To extract and index you

Create SharePoint List/Document Library using programming

Create SharePoint List/Document Library using C# (How-To: Create a SharePoint list programmatically/Create a list/Add a Custom List to SharePoint/Programmatically create a custom SharePoint list): Overview: In one of my project, i am having requirements of list SharePoint List logging. For this, i required a SharePoint. I can create a SharePoint List by following way: Create a SharePoint List by directly accessing the SharePoint Site Create a SharePoint List with the help of SharePoint Object Model ( Microsoft.SharePoint namespace ) I adopted the second case in my windows application project. Below are steps in detail. Step 1: Create a xml file with name ListDetails.xml and copy following text in to that xml file: Step 2: Create a .cs file and add following code: private SPFieldType GetFieldType(string fieldType) { SPFieldType fieldTypeForColumn = SPFieldType.Text; // Get the field type. switch (fieldType) { case "Text": fieldTypeForColumn = SPFieldType.Text; b

Encrypting Web.Config using RSAProtectedConfigurationProvider in SharePoint Using C#

Encrypting Web.Config Values Overview: One of the most common uses of the protected configuration is to encrypt connection strings in web.confg (that's one of the reasons for creating a separate tag for connection strings instead of adding it in appSettings tag). Adding this connection string as plain text is not the best practice for sharepoint web application security and this might cause serious hacking problems. Sharepoint also support for encrypting and decrypting configuration sections in web.config file. In this article, we will explore how to encrypt and decrypt sections of the web.config. We can encrypt the configuration sections by using two built-in providers: DPAPI (Windows Data Protection API) Provider or the RSA provider . The RSA provider (default) uses an RSA key which holds public and private keys, where as the DPAPI provider uses built-in machine-specific key. Let us explore the steps required to encrypt the sections using RSA. Below are steps in detail. Step 1

Add Technorati tags in blog posts

How to Add Technorati Tags to a Blog: Technorati is an Internet search engine for searching blogs. You can increase your blog traffic by adding Technorati tags at the end of your blog posts. This will put your post into the list of posts searchers find on Technorati when searching for the tags you used. Everyday, thousands of visitor search for information through it. If your blog is registered in Technorati , a bigger chance it will be seen by visitors. This can increase your SEO Blog rank. To register in Technorati , follow below simple steps: 1. Sign In on Technorati, if not register, please Join on Technorati , follow below simple steps: 2. Click your account (your userID), it's near signout link. 3. Click Claimed Blogs tab. 4. Click Claim a new blog link below. 5. Enter your Blog URL then click Begin Claim Button. Now, your blog is registered in technorati. In the next step, i will discuss about how to add technorati tag on every posting. 1. Login to BLOGGER, go to: &quo

Add Web Part to page using C# code in SharePoint

Add Web Part to page using C# code in SharePoint: In MOSS 2007 or WSS 3.0 sites we can add or remove the web part from SharePoint page, using the options available in site. We can also add web part into a page using SharePoint Object Model . To add web part into a page, we will use SPLimitedWebPartManager class . SPLimitedWebPartManager class: Provides a limited set of Web Part operations that can be performed in our object model scenarios when there is no HttpContext and no Page object is instantiated. Example 1: Add web part to a page by passing page Url, webPart Name, zoneID and zoneIndex:- Using Microsoft.Sharepoint; Using System.Web.UI.WebControls.WebParts; public static string AddWebPartToPage( SPWeb web, string pageUrl, string webPartName, string zoneID, int zoneIndex) { using (SPLimitedWebPartManager webPartManager = web.GetLimitedWebPartManager( pageUrl, PersonalizationScope.Shared))

SharePoint Rich Text Box (InputFormTextBox) Control

Image
Use of Rich Text Box (InputFormTextBox) Control in SharePoint: Objective: In this article, I am going to explain use of RichTextField (InputFormTextBox) control in SharePoint. Requirement: Take an example of one requirement: We need to create newsletter on the basis of user input. The user input can be a normal text or html format text. Resolution: In this scenario, we can use SharePoint Rich Text Box (InputFormTextBox) control in a custom webpart/usercontrol. Check the screen shot below: Ways of using SharePoint Rich Text Box (InputFormTextBox) control: 1. The following code illustrates how to use SharePoint Rich Text Box (InputFormTextBox) control in user control: i. Add the required directive at the top of the ascx page (if you're using a web user control): <%@ Register Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.SharePoint.WebControls" TagPrefix="AmitKumarSPControls"

Export/Import a sharepoint list/document library

Content Import/Export: The Microsoft.SharePoint.Deployment APIs in Windows SharePoint Services 3.0 provide a flexible set of tools for migrating content between Windows SharePoint Services Web sites. Windows SharePoint Services uses the concept of the content migration package, which can include either single or multiple XML files, and then provides a flexible set of APIs to enable exporting and importing the migration packages. The content import/export feature of the deployment object model allows you to export not only Web site content but also existing dependencies, like security features, user roles, versioning data, workflows, and other metadata. Content Migration Using the Deployment Object Model: The import/export features of the Microsoft.SharePoint.Deployment object model uses two key objects: Microsoft.SharePoint.Deployment.SPImport and Microsoft.SharePoint.Deployment.SPExport. However, before you run the import or export operations using these objects, you must first specif

Add Code Block in Blogs

If you want to put some HTML, JavaScript or code of any programming language in your blogger blog posts then entering that as a simple text will mix it with plain text and that would be pretty hard for readers to differentiate between plain text and code block. To make the code look different from plain text you need to highlight code block. We can use SyntaxHighlighter tool to insert colored code snippets on a web page using client-side javascript only. This tool is useful for users of BLOGGER because we do not have server side resource to parse and highlight the code. For implementing this tool on blooger/blogspot site, we need to do some changes in the template of blog. Below are the steps to setup: 1. Take the backup of existing template. 2. Download the files from SyntaxHighlighter . 3. Now extract the contents of the package and upload the Scripts and Styles folder to any host or website which can be linked from your blog.A free choice is, of course, Google Docs . 4. Login to

XCOPY Command

Xcopy Copies files and directory trees. XCOPY source [destination] [/A | /M] [/D[:date]] [/P] [/S [/E]] [/V] [/W] [/C] [/I] [/Q] [/F] [/L] [/H] [/R] [/T] [/U] [/K] [/N] [/O] [/X] [/Y] [/-Y] [/Z] [/EXCLUDE:file1[+file2][+file3]...] source: Specifies the file(s) to copy. destination: Specifies the location and/or name of new files. /A : Copies only files with the archive attribute set,doesn't change the attribute. /M: Copies only files with the archive attribute set,turns off the archive attribute. /D : m-d-y Copies files changed on or after the specified date. If no date is given, copies only those files whose source time is newer than the destination time. /EXCLUDE: file1[+file2][+file3]... Specifies a list of files containing strings. When any of the strings match any part of the absolute path of the file to be copied, that file will be excluded from being copied. For example, specifying a string like

.NET forms integration within the Sharepoint workflow

Overview: This article explains you how to get data into the Workflow from “Custom User Forms.” It turns out that SharePoint allows developers to prompt the administrators and users for information at several stages along the workflow:. When is the workflow done connected to a SharePoint List or Document Library. This is by building and attaching aSharePoint Association Form which allows the Administrator, or a user, who connects the workflow to a SharePoint List, to set “default” values and behavior for the workflow. Just workflow is before the prompt the user started, which gives the developer an opportunity to for information that might be needed at the start of the workflow and/or give the user an opportunity to override the default values defined via the Association Form. This is done by providing the user with a custom Instantiation/Initiation form At running anytime during a workflow, by providing a Modification form By assigning users Tasks (think” Outlook Tasks”