Get Current User and update in InfoPath Form Column

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

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

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 …

WIF – Windows Identity Foundation

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

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

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 …

MOSS frequent Development Issues and Fix

MOSS 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

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 …