Posts

Showing posts from October, 2012

Add multiple lookup field programmatically sharepoint 2010-client object model

Add multiple lookup field programmatically sharepoint 2010 -client object model Insert the following namespace using Microsoft.SharePoint; using Microsoft.SharePoint.Client; Use the following code.    ClientContext ccsite;    List listobj;    List listobj_lookup;             //Object for lookup list    ListItemCollection _icoll;   public MainPage()       {            InitializeComponent();             ccsite = new ClientContext(ApplicationContext.Current.Url);            ccsite.Load(ccsite.Web);            listobj = ccsite.Web.Lists.GetByTitle( "ListName" );            listobj_lookup= ccsite.Web.Lists.GetByTitle( "ListNa...

sharepoint add lookup field programmatically-client object model

Add lookup field programmatically sharepoint 2010-client object model Insert the following namespace using Microsoft.SharePoint; using Microsoft.SharePoint.Client; Use the following code.    ClientContext ccsite;    List listobj;    List listobj_lookup;             //Object for lookup list    ListItemCollection _icoll;   public MainPage()       {            InitializeComponent();             ccsite = new ClientContext(ApplicationContext.Current.Url);            ccsite.Load(ccsite.Web);            listobj = ccsite.Web.Lists.GetByTitle( "ListName" );            listobj_lookup= ccsite.Web.Lists.GetByTitle( "ListName" );...

unable to load workflow actions from the server. please contact your server administrator

Image
unable to load workflow actions from the server. please contact your server administrator:    This error will happen because of your deployed webparts(that may be not present or not deployed correctly).    So you cant open or create a work flow. To solve this: 1.Open web.config file from C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS Change the following in web.config <customErrors mode = " Off " />     2.In your site go to  site actions->site settings->site administration ->workflow There it will show in which web part error is present. 3.Go to central administrator system settings->farm management->manage farm solutions there you will find all the deployed web parts.Just click on the error web part which was shown in above step.And click Retract solution and click ok. 4.Again go to your site error page(mentioned in step 2). Refresh the page. If there is ...

customerrors mode= on defaultredirect= mycustompage.htm / sharepoint

customerrors mode= on defaultredirect= mycustompage.htm   Error Message: Server Error  in   '/'  Application. ----------------------------- Runtime Error <!-- Web.Config Configuration File -->  <configuration>      <system.web>        <customErrors mode= " Off " />     </system.web>    </configuration>    <!-- Web.Config Configuration File --> < configuration> <system.web> <customErrors mode = " RemoteOnly " defaultRedirect = " mycustompage .htm" /> </system.web> </configuration>   To Find Solution: Open web.config file from C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS Change the following in web.config and you will be able to see the detailed error. <customErrors mode ...

messagebox result c#

messagebox result c# C# code: MessageBoxResult result = MessageBox .Show(" your message! ", "MessageBox heading" , MessageBoxButton .OKCancel);   if (result == MessageBoxResult .OK)  {    //Your Code  }