Displaying Multiple Query Totals in an ASP.NET Paged GridView


This post is about displaying 1 or more “totals” rows within the footer row of an ASP.NET GridView control, although by “totals” you could easily substitute some other mathmatical function. This topic has been done to death, although in this post I will demonstrate a technique I used to display query totals in a GridView … Continue reading Displaying Multiple Query Totals in an ASP.NET Paged GridView

SharePoint / MOSS and (ASP.NET) Server Side Code


It’s well documented that ASP.NET pages when hosted in SharePoint / MOSS should not include server-side / inline code scripts such as shown below, for various security related reasons. More importantly, SharePoint does not allow such pages to be shown. If you try to run such a page you’ll get shown a “helpful” error messages … Continue reading SharePoint / MOSS and (ASP.NET) Server Side Code

Sharepoint Identity Contexts


When writing pages or web parts for Sharepoint (or indeed just ASP.NET) their are 3 security identity contexts to take into account. 1. Process/Thread Identity This is the identity returned by calling WindowsIdentity.GetCurrent(). If ASP.NET impersonation is not enabled the identity returned will be the process identity (that of the IIS Application Pool). If ASP.NET impersonation … Continue reading Sharepoint Identity Contexts