Posts

Showing posts from September, 2011

Customize EntityEditorWithPicker with AfterCallbackClientScript

Image
Working With Customize EntityEditorWithPicker with AfterCallbackClientScript   First download the custom picker control by going to the following link   create-a-custom-picker-in-sharepoint-2010 Why we need to customize the above code. Once the user select the city from the picker we need to automatically fill up the City PIN no. as well as the City STD Code ect.     EntityPicker control is the  AfterCallbackClientScript Property which allows you to provide a name of a JavaScript function that will be executed after an entity has been chosen/resolved. Once you add the following line of code in your page. (as you downloaded from the link that provided above in layout page PickerPage.aspx) < SPSolutions : CityEditor id ="CityEditorSingle" runat ="server"                         MultiSelect ="false"  ...

SharePoint 2010 Role Assignment & Anonymous

Role Assignment & Anonymous method using code Anonymous Access   Role Assignment in item level 1.  Anonymous Access   private   void   RestrictedFormPagesCode_Click( object   sender,   EventArgs   e)           { SPSite   site =   new   SPSite ( "http://home" );                SPWeb   _web = site.RootWeb;                _web.AnonymousPermMask64 = _web.AnonymousPermMask64 ^   SPBasePermissions .ViewFormPages;                _web.Update(); }  2.  Role Assignment in item level private   void   RoleAssignment_Click( object   sender,   EventArgs   e)           { SPSite ...

SharePoint2010-Ribbon-Custom-Action

Image
In this Post we learn. How to create custom action in various locations. We learn. 1.        Insert simple custom action button in Standard Menu. 2.        Insert simple custom action in List Edit. a.        Using Unique RegistrationId ie List URL ie {$ListId:Lists/contacts;}" (only work for sandbox solutions) b.       Using Unique RegistrationId ie List GUID. Steps. 1.        Open visual studio 2010 under SharePoint2010 create empty SharePoint project. 2.        Add empty element from file menu. 3.        In element.xml add xml. Solution 1 : Insert simple custom action button in Standard Menu. Element.xml <? xml version = " 1.0 " encoding = " utf-8 " ?> < Elements xmlns = " http://schemas.microsoft.com/sharepoint/ " > ...