Skip to main content

Posts

Showing posts from May, 2013

Dot Net Interview Questions with Answers

What is the difference between “DataSet” and “DataReader” ?  Twist :- Why is DataSet slower than DataReader ? Fourth point is the answer to the twist.   Following are the major differences between “DataSet” and “DataReader” :- DataSet   is a disconnected architecture, while “DataReader” has live connection while reading data. If we want to cache data and pass to a different tier “DataSet” forms the best choice and it has decent XML support.   When application needs to access data from more than one table “DataSet” forms the best choice. If we need to move back while reading records, “datareader” does not support this functionality.   But one of the biggest drawbacks of DataSet is speed. As “DataSet” carry considerable overhead because of relations, multiple tables etc speed is slower than “DataReader”. Always try to use “DataReader” wherever possible, as it’s meant specially for speed perf...

How to Create a Custom Site Defination in Sharepoint 2010

The process to create a custom site definition has not changed much since the last version of SharePoint, the only differences are the directory names and some of the XML in the WEBTEMP files. Site Definition basics Site definitions are located in the following folder on the SharePoint server: C:\Program Files\Common Files\Microsoft Shared\web server extensions\14\TEMPLATE\SiteTemplates Each site definition has its own sub directory under this folder. Inside each site definition sub directory the .aspx pages for the various web pages and lists that make up the site definition are stored.  Some of the new site definitions that come with SharePoint 2010 also include image files in these subdirectories.  The ONET.XML file specifies the various configurations and modules the site definition is made up of.  It is stored inside the XML subdirectory inside each site definition sub directory. * Note : I think it is interesting that the SDK refers to Site Templates as ...