Wednesday, June 15, 2016

Adding HttpHandler to SharePoint


From Visua Studio SP Project -> Add Sharepoint Mapped Folder -> Layouts

From Visual Studio Add New Handler Called "MyHandler.ashx":

Inside MyHandler.ashx :

<%@ Assembly Name="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Assembly Name="MyTestProjectAssemblyName, Version=1.0.0.0, Culture=neutral, PublicKeyToken=af79cefbe6d4cf2c" %>
<%@ WebHandler Language="C#" Class="MyNameSpace.MyHandler" %>

-----
To Call you Handelr :
/_layouts/15/MyHandler.ashx



No comments: