posts - 41, comments - 200, trackbacks - 0

My Links

News

These postings are provided "AS IS" with no warranties, and confers no rights.
Locations of visitors to this page virtusa corp sharepoint virtusa.com shehan peruma

Tag Cloud

Archives

Post Categories

Development

Google Feeds API
I was given with a simple requirement – create an online component that has the ability to pull RSS feeds asynchronously from websites. I could have written a server control, but that would mean I would need to write the logic to read the xml and parse it. Totally doable, but it was late in the day when the requirement came in and I wasn’t about to slave over Visual Studio to write manage code. OK, so long story short I used the Google Feed API to get the job done. Assuming you know jQuery the code...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Posted On Thursday, September 01, 2011 5:31 PM | Feedback (0) | Filed Under [ Development ]

Latest jQuery library
Use the following link to find out the latest version of the jQuery API library hosted on Google’s CDN: http://code.google.com/apis... Technorati Tags: jquery google cdn...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Posted On Wednesday, August 24, 2011 12:59 PM | Feedback (0) | Filed Under [ Development ]

Error creating SharePoint project in Visual Studio
The following issue was encountered on a developers machine when trying to create a SharePoint project using Visual Studio 2010. From the File menu the developer selected New->Project and then selected ‘Empty sharepoint project’ (SharePoint 2010) and then typed in the url into the dialog box that appeared and then hit the Validate button. Upon clicking the button, the following error message was shown: Cannot connect to the SharePoint site: http://serverX:6666/. Make sure that the Site URL is...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Posted On Tuesday, November 16, 2010 12:24 PM | Feedback (4) | Filed Under [ Development ]

command to list all files in a folder structure recursively
dir /a-d /b /s Technorati Tags: command,cmd,folders,files,r...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Posted On Monday, October 18, 2010 5:28 PM | Feedback (0) | Filed Under [ Development ]

Staring a workflow inside a list event receiver sends out a wrong link
Here’s the scenario: The user navigates to the NewForm.aspx page of a list and enters values into the necessary fields. As soon as the user click the OK button the browser should take the user to the EditForm.aspx page and load the previously entered item in edit mode and also start the approval workflow on the item. Solution: Create a event receiver for the list that hooks up to the ItemAdding event. There are quite a few blog posts out there that talk about this, so instead of typing down the same...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Posted On Friday, October 01, 2010 6:04 PM | Feedback (0) | Filed Under [ Development ]

'Physical' location of GAC assemblies
To open up the 'physical' location to all the GAC assemblies: Start -> Run Type ‘C:\WINDOWS\ASSEMBLY\GAC_MSIL’ Press ‘Enter’ Technorati Tags: GAC,assembly,dll...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Posted On Tuesday, May 11, 2010 4:45 PM | Feedback (2) | Filed Under [ Development ]

Display the users IP Address in a Data View Web Part
Quite simple really :) Open up an existing DVWP or create one. Right click the DVWP and select ‘Common Data View Tasks’ (or click the little arrow that appears on the top right of the DVWP) Click the ‘Parameters’ link In the dialog that opens up click the ‘New Parameter’ button. Provide a name for the parameter (e.g. IPAddress) In the ‘Parameter Source’ dropdown select ‘Server Variable’ In the ‘Server Variable Name’ text box enter REMOTE_ADDR Leave the ‘Default Value’ text box empty Click OK Now...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Posted On Wednesday, October 14, 2009 9:20 PM | Feedback (2) | Filed Under [ Development ]

Get all replies to a discussion
A discussion list in unlike a normal list in that it consists of two content types - a Discussion content type that maps to the discussion topic and a Message that maps to all replies to the topic. If you examine the Discussion content type you’ll see that its inherited from the Folder content type. The reply contains a field called ‘ParentFolderId’ and as the name suggests it holds the ID of the discussion topic. So naturally if you were to do a query on the list for all items with the same ParentFolderId...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Posted On Saturday, October 10, 2009 3:40 AM | Feedback (2) | Filed Under [ Development ]

mailto with ‘#’ in email address issue
It seems that if you use an email address that contains a ‘#’ character and is part of a mailto tag, then clicking on it on the browser will open Outlook, but will not add the complete email address in the ‘To:’ field; it adds all characters until the ‘#’ character. To overcome this replace the ‘#’ character with %23 So, if you had an email address like: #projectTeam@company.com the mailto tag should have it as %23projectTeam@company.com Technorati Tags: mailto...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Posted On Saturday, October 03, 2009 11:21 PM | Feedback (1) | Filed Under [ Development ]

Using SharePoint's Rich Text Box in a page
ASP.Net does not provide a rich text box control in its set of web controls. So, if you need to place a rich text box on your SharePoint page you'll have to use a commercial, free or open source text box control (and there are plenty out there). However if you don't want to introduce another dependency, in the form of an external control, you can use SharePoint's built-in rich text box. If you're creating a page layout that binds to a content types field then its straight forward and you can use...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Posted On Thursday, August 20, 2009 11:17 AM | Feedback (4) | Filed Under [ Development ]

Full Development Archive

Powered by: