Development
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...
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...
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...
dir /a-d /b /s Technorati Tags: command,cmd,folders,files,r...
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...
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...
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...
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...
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...
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...
Full Development Archive