Kirk Evans Blog

.NET From a Markup Perspective

Browse by Tags

Tagged Content List
  • Blog Post: Set IIS Log Fields with C#

    This post shows how to set the log fields for IIS web sites programmatically. Code is attached at the end of the post. Background I have a customer that has many web applications, and we need to set the IIS log fields to do some investigation. James Blackwell posted a great sample of how to do...
  • Blog Post: Making The Case for Async Web Parts

    This post will show how to make a call to HttpWebRequest asynchronously from a web part and wait on the result or time out. Years ago, I was fortunate to meet Jeff Richter and attend a session he gave on .NET performance . He discussed I/O completion ports and showed why any calls from an ASP.NET...
  • Blog Post: Capturing a Memory Dump Using DebugDiag 1.2

    In previous posts, I talked about using WinDBG to debug.  Another incredibly handy tool to have at your disposal is the Debug Diagnostic Tool, or DebugDiag 1.2 .  This tool can be used to automatically capture a memory dump when an exception occurs.  To understand some of the tools at...
  • Blog Post: Modifying the Page Layout for Enterprise Wiki Pages in SharePoint 2010

    In this post, I will show how to modify the page layout for Wiki pages in SharePoint 2010. There are many reasons you might want to edit the page layout for a Wiki page.  For instance, you might want to move the Modified By and Last Modified Date fields to appear below the content.  You might...
  • Blog Post: Programmatically Creating a SharePoint Content Type

    I have been working on a project that requires creating a content type programmatically.  Admittedly, it took me awhile to figure it out.  You can create a content type for SharePoint declaratively in a feature using XML similar to the following: <? xml version ="1.0" encoding...
  • Blog Post: User Controls and Server Controls in SharePoint

    ASP.NET developers have enjoyed using user controls and server controls in their development since ASP.NET was created.  This post talks about user controls and server controls and shows how to implement them in SharePoint. User Controls A user control is a control that is associated with a .ASCX...
  • Blog Post: Debugging JavaScript with the IE Developer Tools

    An interesting question was posted on one of the distribution lists today. “The client wanted to look into this MSDN drag and drop typed left navigation bar to work on Sharepoint 2010, does anyone make this work or have idea about this?” Click the control that is circled, and the menu is expanded or...
  • Blog Post: WinDBG and PssCor2 for SharePoint Developers

    In this post, we’ll see some steps about how to troubleshoot a production SharePoint site using WinDBG and PssCor2.dll.  For an introduction to setting up your environment and getting started, see my blog post “ Intro to WinDBG for .NET Developers ”.  In this post, we’ll apply some of our WinDBG...
  • Blog Post: Intro to WinDBG for .NET Developers

    When your code goes into production, you usually no longer have access to its binaries when they reach their final destination.  Whether that is someone’s desktop or a set of servers, you no longer have access to directly observe your code and its environment.  Operating system patches are...
  • Blog Post: Adding jQuery to Every Page in SharePoint with Delegate Controls

    A customer asked how they could add jQuery to every page in SharePoint. They wanted to modify core.js on the disk, but of course we all know that Microsoft does not support modifying files that reside in the _layouts folder . Of course there are supported ways to do this without such hacks. All of...
  • Blog Post: SharePoint Developers–What’s On Your Machine?

    I recently got a question from a customer about utilities to include on their development machines.  My view is that you should trust your developers and let them install the tools they need.  However, some devs don’t have managers who trust their developers to do the right thing and they need...
  • Blog Post: Code-Behind Page Layouts with Visual Studio 2010

    This post shows how to create content types and page layouts with Visual Studio 2010. In Part 1 , I introduced the concept of content types and page layouts using SharePoint Designer. In this post, I will show how to accomplish the same tasks with Visual Studio 2010, and will show how community tools...
  • Blog Post: Page Layouts in SharePoint

    I have been working on a customer solution and have gotten to do some fun coding this week.  As usual, I wanted to share it with you so that you can maybe learn a few new ways of working with SharePoint.  The business problem is that the business wants users to view and accept a Terms &...
  • Blog Post: What is a Dedicated Support Engineer?

    For the past 7 years, I worked in Developer Platform Evangelism to talk to customers about the latest and greatest technologies that Microsoft would soon be releasing, and worked to gain early adopters of the technologies.  This was a very fun job, but I desired a change.  This past July, I...
  • Blog Post: Creating a Delete Without Recycling Feature for List Items in SharePoint 2007

    In my last post, I talked about errors you might encounter while trying to empty the second stage recycle bin with SharePoint 2007. My customer encountered this problem partially because a single site deletes upwards of 2,000 items per day. They saw items in the second stage recycle bin that were 8 months...
  • Blog Post: Creating a Custom Login Page for SharePoint 2010

    In this post, we will create a custom login page for SharePoint 2010 for use with Forms Based Authentication. Background I was working with a customer to troubleshoot problems with Forms Based Authentication (FBA) in SharePoint 2010.  The first step was to configure Forms Based Authentication in...
  • Blog Post: SQL Server Provider for Claims-Based Authentication in SharePoint 2010

    This post shows how to implement FBA claims-based authentication for SharePoint 2010.  We will use the ASP.NET membership and role provider to authenticate users to our SharePoint 2010 site. Overview SharePoint 2007 introduced the ability to use the ASP.NET Membership Provider to authenticate users...
  • Blog Post: Creating a SharePoint Site Page With Code-Behind Using Visual Studio 2010

    See the attachment to this post for the full source code. When I first started developing with SharePoint, I wanted to learn how to do the things that I did in ASP.NET.  Many of those things easily transfer, thanks to Visual Studio 2010.  For instance, it is very easy to use a WYSIWYG designer...
  • Blog Post: SharePoint Live Virtual Conference & Expo

    Register today for the free SharePoint Live Virtual Conference & Expo ! Hard to get out of the office? Training dollars are limited? We're bringing you a FREE virtual event on one of the most anticipated software releases - SharePoint 2010 - live from the convenience of your office. We're kicking...
  • Blog Post: Using the intrinsic SharePoint Controls

    I’ve built application pages plenty of times, but admit that they never look like other application pages (particularly the ones in the Site Settings section).  OK, I can admit when I’m wrong, and this is another one of those times.  Turns out it is incredibly easy to make application pages...
  • Blog Post: SharePoint for Developers Part 6 – Custom web services

    Part 6 of the SharePoint for Developers series is posted to Channel9, this one focusing on creating custom web services in SharePoint .  For reference, here are the links to the previous 5 screencasts in this series so far. Introducing Visual Studio Extensions for Windows SharePoint Services (VSeWSS...
  • Blog Post: LINQ to SQL and Connection Pooling

    I’ve been working with Microsoft’s database connection technologies (ADO.NET, ADO, and ODBC) for many years now.  A customer pinged me with an interesting question about LINQ and database connection pooling in an ASP.NET application.  I thought I would simply copy and paste and hope this helps...
  • Blog Post: Free SharePoint Developer Training

    Even more free training for SharePoint Developers.   Module 1 - Developing Solutions on the SharePoint Platform » learn now Module 2 - Web Parts » learn now Module 3 - Page Navigation » learn now Module 4 - Page Branding » learn now Module 5 - Data Lists » learn now Module 6 - Web Services...
  • Blog Post: ASP.NET Development Server (“Cassini”) Stops Working

    If you are suddenly unable to debug ASP.NET apps using the ASP.NET Development Server (aka “Cassini”), check your hosts file and make sure there’s an entry: 127.0.0.1 localhost There was an update on March 9, 2009 that might have removed this entry from the hosts file.  For more information...
  • Blog Post: ASP.NET Dynamic Data and Displaying Images with a Custom Field Template

    Awhile back, I posted about creating an image handler to render images stored in a database .  Someone pinged me and asked how you could use that with ASP.NET Dynamic Data web sites.  Hmm… I haven’t looked at Dynamic Data very deeply yet, so I decided to give it a shot.  I was surprised...
Page 1 of 2 (50 items) 12