Object initializers and Collection initializers in asp.net ?

Object initializer in asp.net, C#.net 4.0 features. Object initializers is one of the most important feature of C # 3.0.What is Object initializers?Using Object initializers we can initialize a object of that type without explicitly invoking the constructor of that particular type. Object initializers:I will explain this with a piece of code:class Student{    public … Read more

What are Application Pages in SharePoint?

Application pages are very important in context of SharePoint. Application pages are stored in layout folder. Unlike site pages (for example, default.aspx), a custom application page is deployed once per Web server and cannot be customized on a site-by-site basis. Application pages are based in the virtual _layouts directory. In addition, they are compiled into … Read more

What is Nullable types in C#

What is nullable type in C# code? Please explain with an example. Nullable types were introduced in C# 2.0.Nullable types are instances of the System.Nullable<T> struct. A nullable type can represent the range of values for its underlying data type, also an additional null value. For example, a Nullable<Int32>, pronounced “Nullable of Int32,” can be … Read more

Dictionary in C sharp. Please explain with code

What is a dictionary in C#?Please explain. Below you can understand the use of the dictionary in an easy way. The Dictionary type in the C# language provides fast lookups with keys to get values.It allows you to use keys and values of any type, including ints and strings.using System;using System.Collections.Generic; class Program{    static … Read more

What is information management policies in SharePoint2010

What is information policies in SharePoint. A policy, as defined by MOSS, is a set of rules or guidelines that govern the creation, use, and disposition of a particular item, site, collection, list, library, page, and so on.Such as information management policy defines who can access documents of a certain content type, what users can … Read more

Executing Server side code in sharePoint or use of PageParserPath

Executing Server side code in sharePoint or use of PageParserPath Application pages in sharepoint behave like asp.net pages where they may contain inline server code.  Wheras site pages are rendered as safe mode parser so there is no problem with these type of pages.The problem comes with application pages i.e. asp.net pages. SharePoint will not … Read more

Concept of boxing and Unboxing in C sharp

Boxing and Unboxing concept in C# language. Explaining with code. Boxing: Boxing refers to the process of moving from a value type to reference type.Un-Boxing: Un-Boxing refers to the process of moving from a reference type to value type. Ex:Public void BoxingUnbox(){            int i = 10;          … Read more

Bulk copy data from excel sheet to sql table

How to process bulk copy data from excel sheet to sql table. Here is code to copy data from excel to sql.       C# Code:       string excelFile = @”C:Book1.xls”;        string ssqlTable = “[MyTableName]”;        string exceldataQuery = “select [id],[email],[status] from [Sheet1$]”;        try    … Read more

Lets Learn SharePoint

What is SharePoint? SharePoint is a platform for collaboration, document sharing, meeting, record management, content management, business intelligence kit. SharePoint marketing tagline is “Business Collaboration Platform for Enterprise and Web”. Let’s understand SharePoint by an example: Suppose a project manager was assigned a new project in his organization. Let’s name this project manager as Mr. … Read more

Architecture of SharePoint 2010 Development Platform

Architecture of SharePoint Development Platform SharePoint uses List, Library, Content Type for Data Management in a SharePoint Web Application. How SharePoint Code Deployed to SharePoint Web Application? SharePoint websites are similar to ASP.Net websites as they are hosted in IIS. However There are differences in the process of code deployment. SharePoint code is deployed to … Read more

RSS
YouTube
YouTube
Instagram