Get Current User and update in InfoPath Form Column

Reading Time: < 1 minute Get 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 minutes 1.    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 minute To 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 minute We 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 minutes Identity 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 minute Sharepoint 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 minute 1. 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 …

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

Reading Time: < 1 minute Below 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 …