SharePointCafe Admin

  • WCF tutorial for beginners and experience

    .

    WCF stands for Windows Communication foundation. It is used for developing distributed system.Below are the topics which are important in WCF for beginners and for experience as well. WCF Introduction WCF vs. Web Service WCF Architecture ABC of WCF First WCF Application WCF Binding WCF- IIS Hosting WCF- Self Hosting WCF- WAS Hosting WCF- Service…

  • Basics of WCF Architecture

    .

    WCF Architecture WCF stands for Windows Communication Foundation, introduced by Microsoft. WCF is one of the popular technology to build Service-Oriented Systems. WCF is the unified model for all existing distributed technologies by Microsoft such as ASMX Web Service,.Net Remoting. WCF supports HTTP, TCP, MSMQ and other protocol as well to communicate. Following image explains…

  • WCF vs Web Services

    .

    Most useful and most asked question in an interview is WCF vs Web Services. It could be asked in various form like Why WCF is better than Web Services WCF and Web Services both are the implementation of SOA (Service Oriented Architecture), both are SOAP-based services. WCF supports other formats as well apart from SOAP…

  • How to add an active class in navigation menu item in asp.net website?

    .

    Generally active class show which page /link you are visiting currently. Active class will be added in CSS class, but the problem is only one item can have active class at one time. But we need to show active class dynamically. Add an active class in menu item in ASP.NET website? In asp.net generally we…

  • how to do url rewrite in C#.net. implemented in asp.net4.0 version

    .

    how to do url rewrite in C#.net. implemented in asp.net4.0 version Url rewriting is just to display a friendly and readable url instead of a comlex or unfriendly url. Suppose there is a url in your website just like below: http://sharepointcafe.net/Page.aspx?userid=23456 The disadvantages of above mentioned url are: 1. This is not a friendly url.2.…

  • Three tier architecture in ASP.Net using C# code

    .

    Read my other blogs, C# 6.0 new features, ASP.Net Tutorial and .Net Core Tutorial.In this blog, we will see 3-tier architecture to develop an application in C#. What is 3-Tier Architecture? 3-Tier architecture is well known in software development for web and windows software.3-Tier architecture contains UI (Presentation) Layer, Business Logic and Data Access Layer.…

  • How to send email to a user using workflow in SharePoint2010

    .

    How to send email to a user using workflow in SharePoint2010 Suppose there is a scenario that when ever you add a new item to a list in SharePoint site immediately an email should be sent to a specific member or user.Here I will explain this scenario by using SharePoint designer 2010.Please follow below steps:…

  • Can we implement interface with same method name?

    .

    Interface is similar to a class, and we implement interface by defining their method in class. Suppose we have same method in more than one interface. In this case there will be a question for interview. Q.    Can we implement interface with same method name?Ans. Yes by using explicit interface implementation. Lets see below…

  • What is safe control in SharePoint 2010?

    .

    In SharePoint Environment a developer can add ASPX file very easily. An ASPX file contains code which may affect the SharePoint environment. In simple words, there might be a security risk of security injection. In this blog, we will see what is a safe control in SharePoint. To reduce the risk, SharePoint differentiates the assembly…

  • ,

    How to create a batch file to do automatic backup of SharePoint site?

    .

    Suppose you have a SharePoint site with some heavy and important data and you want to take the backup regularly. So instead of manual process you can create a batch file which will automatically take the backup of the mentioned site. Below is the given script:Write below code in a notepad and save it as…

  • Java Script Form Validation

    .

    Form validation is a process by which users are restrict to enter irrelevant data. For eg invalid format of email id, alphabets in mobile no.l field. Below is the code to validate a form. Below function can be call either on a button click or on an anchor link.   function Validation() {     …

  • Timer job in SharePoint 2010. How to create a timer job?

    .

    What is Timer Job in SharePoint? Timer Jobs are background processes that are managed by SharePoint. A timer job runs on a periodic basis defined in central admin. A timer job runs periodically, can be scheduled hourly, daily, weekly. Ex: User profile sync, Search Indexing The timer job is a class which implements the SPJobDefinition…

  • How to export subsites or list in sharepoint 2010?

    .

    Some times you need to take the backup of your subsites with all pages, list and library. Subsites can not be taken as backup and restore. Subsite can be exported and imported to another site. First you need to export the subsite. So to do that Go to central admin, Click on backup and restore,…

  • Gridview row edit, delete and update code in asp.net

    .

    As Gridview is a data source control which binds data from backend sql server or any other database table. Here is the code which implements edit, delete and update functionality in a single Gridview. Gridview Edit,Update and Delete functionality code: ASPX Code: <asp:GridView ID=”gvDetails” DataKeyNames=”id” runat=”server” AutoGenerateColumns=”false”                 …

  • What is sandbox solution in SharePoint?Please explain

    .

    Sandbox solution is a new feature in sharepoint 2010. As sharepoint is a server component, so instead of giving full access on farm to a site collection administration sandbox will give a limited access of the developed code. In SharePoint 2007 only a farm administrator can deploy or install solutions to SharePoint site. But in…

  • How to solve this error “A potentially dangerous Request.Form value was detected from the client”

    .

    If you are using .net3.5 or lower version then put this line in web.config <pages validaterequest=”false”>under <system .web=””>….</system>

  • 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…

  • 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…

  • 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…

  • 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…


RSS
YouTube
YouTube
Instagram