Thursday, October 20, 2011

Working with Event Receiver in Sharepoint 2010 Lists

Here is some links about Binding Event Receiver on Lists of Sharepoint 2010.
(1) How to Create Event Receivers for Windows SharePoint Services 3.0

(2) Add Event Receivers to SharePoint 2010 Lists

(3) Create Custom List Definitions in SharePoint 2010

(4) Using the Event Handler in SharePoint 2010.sharepointbriefing.com

(5) Creating Event receiver in SharePoint 2010 : Learning SharePoint

(6) Chaks' Corner | Event Receivers in SharePoint 2010

(7) List Definition from Content Type using Event Receiver- Site Home - MSDN Blogs

(8) How Do I: Create Event Receivers for SharePoint 2010 in Visual Studio 2010?

(9) Creating custom list event receivers in SharePoint 2007 « aarebrot.net

(10) SharePoint Kings: Redirection from event handler

(11) How to: Access, Copy, and Move Files

(12) Walkthrough 2 – Developing an Event Receiver for a Document Library « Karine Bosch’s Blog

(13) How to copy newly added document with metadata to another document library?

(14) Move a document from one library to another library using event eceiver- Stack Exchange

(15) document library- Copy To Folder - SharePoint - Stack Exchange

(16) SharePoint 2010: Redirecting User to a Custom Page from Event Receiver « Razi [SharePoint MVP] Blog

(17) Creating SharePoint 2010 Event Receivers in Visual Studio 2010

(18) Using Event Receivers in SharePoint Foundation 2010 (Part 1 of 2)

(19) SharePoint Document Library item title in Event Receiver AfterProperties

(20) Walkthrough: Add List Event Receiver dynamically at runtime in SharePoint 2010

(21) How to: Create an Event Receiver for a Specific List Instance

(22) Add a Counter to a SharePoint List Using an Event Receiver

(23) SharePoint: Writing a Custom Event Receiver

==> Remove event receiver
(1) Deleting an Event Receiver using STSADM

(2) Remove Event Receiver in Sharepoint List

(3) Delete event receiver from a SharePoint list

(4) How to add/delete an event receiver to a single list with PowerShell in SharePoint 2010

Tuesday, October 18, 2011

Working with DataSheet View in Sharepoint 2010

Here is some links about DataSheet View in sharepoint 2010.

(1) Enabling DataSheet View in SharePoint 2010

(2) Data Sheet View Not Working? | SharePoint Blues

(3) SharePoint 2010 Datasheet view not available | Train-A-Scope- Linking People and Technology - Steven Knight Training

(4) Nicholas Bisciotti's Blog: SharePoint Datasheet View, Office 2010 Compatibility

(5) errors in micosoft share point: The list cannot be displayed in datasheet view wss, error message Moss "Server Error in '/_vti_bin' Application"

(6) Use Datasheet view in 64-bit Office 2010- Office.com

(7) Create Datasheet view missing

(8) SharePoint 2010 : Use the Datasheet View to Add, Edit, or Delete Items and Files, exercises, practises, tutorials, solutions about Sharepoint

(9) You cannot view a list in Datasheet view after you install the 64-bit version of Office 2010

(10) SharePoint View Permission & Column Permission | Try Free

(11) How to Disable Data Sheet View for Users in SharePoint 2010?

(12) Know SharePoint: SharePoint Datasheet View and Office 2010 64-bit

(13) SharePoint 2010 Help » Datasheet view

(14) SharePoint 2010 Datasheet View Bugaboo » Marc D Anderson's Blog

Fetching values of Controls using JQuery

Here is some links & code snippets to fetch/reset different controls value using JQuery.

(1) Remove checked for CheckBox - $("#<%= CheckBox1.ClientID %>").removeAttr("checked");
(2) Set Value for TextBox - $("#<%= TextBox1.ClientID %>").val("");
(3) Set Value for Dropdownlist - $('#<%= DropDownList1.ClientID %>').val("");
(4) Reset all Dropdownlist of Form - $("select[id*=DDL] option[value=0]").attr('selected', true);
(5) Set Value for HiddenField - $("#<%= HiddenField1.ClientID %>").val("0");
(6) Uncheck All Checkboxes on Form - $("input[type='checkbox']").attr('checked', false);
(7) Check all checkbox in grid - $('#<%=Grid1.ClientID %> >tbody >tr >td >input:checkbox').attr('checked', true);
(8) Fetch table cell value - $('#mytable tr').each(function() {
    var customerId = $(this).find("td").eq(2).html();    }
(9) Set confirm on link button in Grid -
       $('#<%= Grid1.ClientID %> tbody tr').not(':first').each(function () {
            $(this).find("a[id$=LinButton1]").click(function () {
                return confirm('Are you sure you want to delete?');
            });
        });

(10) Create common function in jQuery - this function returns checked items count in grid
$.fn.gridCount = function () {
        var vCount = 0;
        $('#<%=GridView1.ClientID %> tbody tr').not(':first').each(function () {
            var strVehicleID = $(this).find("td:first-child").find("input:checkbox");
            if (strVehicleID.attr("checked") == true) {
                vCount++;
            }
        });
        return vCount;
    }
(11) Some useful jQuery syntaxes
       jQuery Selector

(12) Fetch Url attribute values
       Get current page URL and title with jQuery 

Wednesday, October 5, 2011

Some Error Resolutions while working Programmatically in Sharepoint 2010

Here is errors and links related to error occurred during programming with sharepoint.

(1) Error occurred in deployment step 'Recycle IIS Application Pool': The vssphost4.exe process was unable to start due to an unknown error or problem.

- Interesting registry settings to help debugging SharePoint Tools Extensions in Visual Studio 2010

- VSX « Second Life of a Hungarian SharePoint Geek

- Visual Studio 2010 extension for helping SharePoint 2010 debugging

(2) One or more field types are not installed properly. Go to the list settings page to delete these fields.
- this is because some of the field in CAML query could be written/spelled wrongly.

(3) Invalid data has been used to update the list item. The field you are trying to update may be read only.
- when there is any lookup field exist and in that we provide any information that is not exist in source table then it will throw error like this.

(4) The data source does not support server-side data paging.
- when we are working paging in grid and we are fetching items using LINQ if list is not returning ToList() then it will give error shown here.

(5) The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
- its looking for referenced assembly in GAC
- its looking for referenced assembly in SafeControl directive of Web.config file.

(6) The security validation for this page is invalid. Click Back in your Web browser, refresh the page, and try your operation again.
    - The security validation for this page is invalid. Click Back in your Web browser, refresh the page, and try your operation again.

    - SPSecurity.RunWithElevatedPrivileges to update SPRoleAssignment of an SPListItem

    - The security validation for this page is invalid. Click Back in your Web browser, refresh the page, and try your operation again.
   
(7) SPDataGrid error 'Unable to cast object of type int32 - SPDataGrid.NewPageIndex property and DataKeyNames

http://blog.sharepointsite.co.uk/2010/10/spdatagrid-error-unable-to-cast-object.html


(8) The server was unable to process the request due to an internal error.  For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentation and inspect the server trace logs.

    - AnswerFBA in sharepoint 2010

    - The server was unable to process the request due to an... RSS

(9) This view cannot be displayed because the number of lookup and workflow status columns it contains exceeds the threshold (8) enforced by the administrator.
   
    - This view cannot be displayed because the number of lookup and workflow status columns it contains exceeds the threshold (8) enforced by the administrator

    - This view cannot be displayed because the number of lookup and workflow status columns it contains exceeds the threshold (8) enforced by the admin..

(10) SQL database login for 'SharePoint_Config' on instance 'Username' failed.
- SQL database login for 'SharePoint_Config' on instance 'SP_2010_TESTQA_SQL' failed.

(11) This solution contains no resources scoped for a web application and cannot be deployed to a partucular web application.
- Issues Deploying SharePoint Solution Packages

- This solution contains no resources scoped for a Web application and cannot be deployed to a particular Web application

- This solution contains no resources scoped for a Web application – Sharepoint WSP deployment exception

(12) 
Error occurred in deployment step 'Recycle IIS Application Pool': 0x80070005Access denied.
Deploy Solution to Site configured with Claims-based Authentication

Error occurred in deployment step 'Recycle IIS Application Pool': Provider load failure

Error occurred in deployment step ‘Recycle IIS Application Pool’