 When we are editing XSLT for Content Query Web Part, XSLTListViewWebPart or any other WebPart with configurable XSLT, you can obtain all list fields and their values with following code:
Note: Notice that @ is the beginning char of any list field.
Regards!  Here we go again with a short (but very useful) post. As part as the good performance practices when we are coding we have to avoid exceptions, there is a usual exception in our SharePoint code, the redirect exception.
When we use Response.Redirect from...  This week I have been working on the creation of a custom control of ASP.NET, its main function is to generate the popular "social buttons" of some social networks (Facebook, Twitter and LinkedIn until now), which allows sharing amongst those...  Hi, In SharePoint we have five OOB roles or permissions levels: Limited Access, Read, Contribute, Design and Full Control. If we want to check if current user have one permission level or higher, we can use this function:
We can invoke this...  Many times, we need to add some embed resources to our Visual Studio 2010 project. In Visual Studio 2008 we only will drag and drop our file to Resources project and then make reference to My.Resources.<ResourceName>. But in VS 2010 when we do...  Hi, First of all, What is Cascading dropdown? For instance, when you have two columns in a SharePoint list, Client and Project. Both are lookup columns and are related. When you add or edit one list item if you choose a client in the Clients...  Hi,
In this post, we will use PowerShell cmd that SharePoint 2010 offers to hide a column from New and Edit forms.
http://<mySite>
With above code, we will disable “Name” column in document library, then users can’t change name of documents.
More...  In SharePoint 2010 the Event Receivers has been improved so much. But there is still a big issue on the default functionality when we want to attach/register an event receiver to a single list. By default when we create an event receiver project Visual...  Hi, some times we need to activate hidden features. An easy way to do it is through PowerShell.
1. Open SharePoint 2010 Management Shell (Run as Administrator)
2. Knows GUID of the hidden feature, for that you can use PowerShell.
Example:
...  In this post I give us 8 tips in order to improve your ranking in Search Engines:
1. URLs
a. We need to use friendly URL.
b. If our page is developed based some redirection in cookie, please understand that Search Robots don’t let cookies.
c....
 Sometimes we activate by mistake the feature that creates the Drop Off Library. In this case this library could become a problem because It sets some restrictions. We can’t delete this library manually as any other library, and if we deactivate the feature...  In SharePoint 2010, when we aren’t in edit mode, we mustn’t view Ribbon or we mustn’t view empty div that represents Ribbon.
For example, in the below image, the empty div with ID “s4-ribbonrow” (only is empty when we aren’t in edit mode), but in this...  Hi,
In this little post we will see how to add Content Editor WebPart to SharePoint 2010 Page programmatically:
And this code for editing XSLTListViewWebPart programmatically:
References:
|
|