Turn Off Mobile Browsing in Office 365 for InfoPath Forms

Reading Time: 1 minuteIf we use InfoPath forms, then it won’t allow user to access the forms from Mobile devices. Since it not supporting Mobile view for InfoPath forms. It will throw below error Solution: Turn Off the Mobile Browser view Deactivate SharePoint Mobile feature in Office 365 sites go to Site Settings …

Get Current User and update in InfoPath Form Column

Reading Time: 1 minuteGet Current User data using jQuery/JavaScript Add a Content editor webpart in InfoPath form New page, add the below code <script type=”text/javascript” language=”javascript”> var user; var email; var firstname; var surname; function getUserInfo() var clientContext = new SP.ClientContext(); user = clientContext.get_web().get_currentUser(); clientContext.load(user); clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, this.onQueryFailed)); } function onQuerySucceeded() { …

Best Practices for ASP.Net Application Production deployment

Reading Time: 5 minutes1.    Use trusted SQL connections with integrated authentication  To make the production environment more secure, one of the things we looked into was securing the database connection information between the web server and SQL server. 2.    Use the Aspnet_setreg.exe utility to encrypt the connection string and store it in the …

Deployment Element – force the ‘debug’ flag in the web.config to be false

Reading Time: 1 minuteTo disables ASP.NET certain configuration settings such as trace output, custom errors, and debug capabilities. Set retail=”true” in your machine.config in the production server <configuration> <system.web> <deployment retail=”true”/> </system.web> </configuration> It will force the ‘debug’ flag in the web.config to be false, disable page output tracing, and� also force the custom …

Feature Installtion Error – STSADM: The farm is unavailable

Reading Time: 1 minuteWe created an feature and try to install in the sharepoint server using stsadm command, it trows STSADM: The farm is unavailable Error. After tried we find the solution. The installing user not having rights in SQL server. ie.the Principal running the command does not have access to the SQL …

WIF – Windows Identity Foundation

Reading Time: 3 minutesIdentity Challenges Most developers are not security experts and many feel uncomfortable being given the job of authenticating, authorizing, and personalizing experiences for users. It’s not a subject that has been traditionally taught in computer science curriculum, and these features tend to be ignored until late in the software development …

SharePoint 2010 Public Beta now available for Download

Reading Time: 1 minuteSharepoint 2010 Beta – [REF MSDN] Microsoft SharePoint Server 2010 Beta is the business collaboration platform for the Enterprise and the Web that enables you to connect and empower people through an integrated set of rich features. Whether deployed on-premise or as a hosted service, SharePoint Server 2010 helps you …

WSP Installation and Feature Activation & DeActivation Steps in MOSS 2007

Reading Time: 1 minute1. Add the solution stsadm -o addsolution -filename <WSPFILENAME> 2. Deploy the solution stsadm -o deploysolution -name <WSPFILENAME> -url <SITEURL> 3. Install the feature stsadm -o installfeature -filename <FeatureFolder>feature.xml 4. Activate the feature stsadm -o activatefeature -id <FEATUREID> -url <SITEURL> -force 5. Deactive the feature Stsadm.exe -o deactivatefeature -filename “C:Program …

MOSS frequent Development Issues and Fix

Reading Time: 1 minuteMOSS frequent Development Issues and Fix 1.     The file or folder name contains characters that are not permitted.  Please use a different name. Ans: Check the Master page URL, Once again pick the Master page URL 2.     Cannot complete this action. Please try again. Ans: CAML Query Error, Check with …

Delete MOSS 2007 List Item using C# – Microsoft Sample code doesn’t work

Reading Time: 1 minuteBelow is the Code to Delete List Item used by Microsoft Sample spListCollection = spWeb.Lists[“ActualAmounttrack”].Items; int itemCount = spListCollection.Count; for (int k = 0; k < itemCount; k++) { SPListItem item = spListCollection[k]; if (IdeaId == item[“Title”].ToString()) { spListCollection.Delete(k); } } Its not Working. Why the above code is not working …