Quantcast
Channel: Development With A Dot
Browsing all 404 articles
Browse latest View live

Displaying Last Modified Contents in SharePoint

SharePoint, as usual, offers lots of ways to do things. This time, I’m going to show how one can get a list of the last modified contents, in any SharePoint version and edition.We’ll use our good...

View Article


A Tour of SharePoint Data Source Controls

IntroductionBesides the classic ASP.NET data source controls, SharePoint brings along its own. These allow us to retrieve data not just from SharePoint, but also from external sources, such as web...

View Article


Custom XSLT Functions in SharePoint

Wouldn’t it be good if SharePoint would allow the registration of custom functions that could be used in XSLT stylesheets? Well, as it happens, it does!Some of the classes that allow XSLT processing –...

View Article

Injecting Content in an ASP.NET Web Forms Page From a Module

Modules are a great extensibility mechanism because they allow us to glimpse into a request and to do something before the response is sent back.Sometimes, you may want to change the page – add some...

View Article

Image may be NSFW.
Clik here to view.

Displaying All Fields in a SharePoint Data Source

So, you want to know which fields your data source is returning. You can use the following XSLT: 1:<xsl:for-eachselect="/dsQueryResponse/Rows/Row/@*"> 2:<p>Name:...

View Article


Editing a Post in Weblogs.asp.net

I was getting a bit tired of having to go through the Dashboard – Blog and having to locate a specific post which might have been published a long time ago, so I came up with a solution.On a blank page...

View Article

Exposing SharePoint Context to XSLT

Picking on my previous post, I am going to show how you can access SharePoint (and ASP.NET context) from XSLT.Create a class like this one: 1: public class ContextExtensions 2: { 3: public Object...

View Article

XSLT For Loop

If you ever need to implement a for loop in XSLT, here’s one possibility: 1:<xsl:templatename="for"> 2:<xsl:paramname="from"/> 3:<xsl:paramname="to"/> 4:  5:<xsl:iftest="$from...

View Article


NHibernate Goodies Coming Soon

Just for you to know that the NHibernate community hasn’t been sleeping, here’s a list of some of the cool new features that are on the queue for the next NHibernate versions.Some are still waiting for...

View Article


Distinct Values in XSLT

How to get distinct attribute values: 1:<xsl:variablename="rows"select="/some/path/@name"/> 2:<xsl:for-eachselect="$rows"> 3:<xsl:iftest="generate-id() = generate-id($rows[. =...

View Article

Image may be NSFW.
Clik here to view.

NHibernate Pitfalls: Refreshing Manually Created Entities Does Not Bring Lazy...

This is part of a series of posts about NHibernate Pitfalls. See the entire collection here.Suppose you have some properties of an entity, including its id, and you want to refresh its state from the...

View Article

Image may be NSFW.
Clik here to view.

Retrieving SharePoint User Profile Properties in XSLT

A common request is to be able to retrieve user information from XSLT (XsltListViewWebPart, DataFormWebPart, etc). It is possible to obtain some information through server variables (LOGON_USER), CAML...

View Article

Image may be NSFW.
Clik here to view.

Windows Azure Websites Succinctly

Another book for which I was a technical reviewer in the Succinctly series just got released: Windows Azure Websites Succinctly. The author is Kyle Burns (@kyleburnsdev), who keeps a blog on...

View Article


Getting the SQL from a LINQ Query in NHibernate

In case you ever want to have a look at the generated SQL before it is actually executed, you can use this extension method: 1:publicstatic String ToSql(this IQueryable queryable) 2: { 3: var...

View Article

ASP.NET Web Forms Extensibility: Output Encoders

Since version 4, ASP.NET offers an extensible mechanism for encoding the output. This is the content that will be returned to the browser.A base class exists, HttpEncoder, for which it used to be the...

View Article


Access Navigation Nodes in SharePoint XSLT

SharePoint relies on ASP.NET Site Map Providers for generating navigation links on its default pages. Specifically, the default Web.config file registers a (big!) number of providers, which control...

View Article

Show All Content in XSLT

I have already shown how you can display all attributes and their values from a XSLT content, but in case you want to look at the whole structure plus their attributes, you can use this instead:...

View Article


Image may be NSFW.
Clik here to view.

Book Reviews

This page will list all of my book reviews, in no particular order.Right now, I am reviewing Microsoft Azure Development Cookbook Second Edition, just give me some more days, because it’s a long...

View Article

Getting the Current User in SharePoint XSLT

SharePoint offers a couple of ways by which we can obtain the current user for use in a XSLT web part like DataFormWebPart or XsltListViewWebPart. All involve first setting parameters through the...

View Article

Image may be NSFW.
Clik here to view.

Registering SQL Server Built-in Functions to Entity Framework Code First

It is possible to register custom functions that exist in the database so that they can be called by Entity Framework Code First LINQ queries.For example, consider the SOUNDEX function (yes, I know, I...

View Article
Browsing all 404 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>