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 …

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 …

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 …