Posts

Showing posts from July, 2009
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

What is the difference between SPListItem.SystemUpdate and SPListItem.Update Method (Microsoft.SharePoint)

What is the difference between SPListItem.SystemUpdate and SPListItem.Update Method (Microsoft.SharePoint): SPListItem.SystemUpdate: Updates the database(Sharepoint list) with changes that are made to the list item, without effecting changes in the Modified Time or Modified By fields. SPListItem.SystemUpdate Overloaded Method: SPListItem.SystemUpdate(): Updates the database with changes made to the list item, without effecting changes in the Modified or Modified By fields. SPListItem.SystemUpdate(Boolean): Updates the database with changes that are made to the list item, without effecting changes in the Modified Time or Modified By fields, or optionally, the item version. Example: //Take the reference of that item SPListItem listItem = listItemCOll[icount]; listItem["FIRST_NAME"] = “Amit”; listItem["LAST_NAME"] = “Kumar”; listItem["EMAIL_ADDR"] = “mcapassion@gmail.com”; //Update the Item listItem.SystemUpdate(false); The argument false informs the SP objec

Different between .ToString() and Convert.ToString() in C-Sharp(C#): Convert.ToString() vs .ToString()

I will explain you what is the different between .ToString() and Convert.ToString() with the help of below mentioned code: int intAmit =0; Response.write(intAmit.ToString()); Response.write(Convert.ToString(intAmit)); We can convert the integer “ intAmit ” using “ intAmit.ToString() ” or “ Convert.ToString(intAmit) ” ,so what is the basic difference between them: Convert: function handles NULLS .ToString(): does not handles NULLS and it will throw a NULL reference exception error. So as good coding practice is to use “ convert ” and it is always safe. Example: For example you received the data from database in the DataTable. One of the column in datatable is " Amit " and " Amit " column value in some rows of datatable are NULL. So, when you will try to convert "Amit" column value to string if column value is NULL, with the help of dt.Row[0]["Amit"].ToString() it will throw a NULL reference exception error . According to me when you need to