Kirk Evans Blog

.NET From a Markup Perspective

Browse by Tags

Tagged Content List
  • Blog Post: How I Became a SharePoint 2010 MCM

    I recently attained the Microsoft Certified Master for SharePoint 2010 certification.  I have long wanted to write about the experience, but honestly didn’t know how to begin.  After quite a few conversations with friends and colleagues, I thought I would share some insight about the process...
  • 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: 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: 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: 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: Getting Friends From Twitter With WCF

    Today, we’ll show off a bit of WCF for working with Twitter.  The last time I posted on using Twitter with WCF, I showed how to update your Twitter status using WCF .  The rest of the Twitter API is just as easy to work with when you are using WCF.  Since the last post on that used an...
  • Blog Post: Getting XML Data From a SharePoint List – The Easy Way

    Steve Pietrek has a great link blog ( Steve Pietrek - Everything SharePoint and Office ) that aggregates blog postings on SharePoint and Office.  If you are at all interested in seeing what’s possible with SharePoint, I highly recommend you subscribe to this great resource.  In his April 30th...
  • Blog Post: Export Your OPML from Outlook

    Lately I have fallen in love with Office programming, but I’m still a complete n00b at it.  I was pilfering through my RSS feeds the other day, and realized I didn’t have a way to export the feeds list as OPML.  Hmm… good time to open Visual Studio and start tinkering.  Here is what I...
  • Blog Post: Convert XElement to XmlNode (and Convert XmlNode to XElement)

    This is just way cool.  Check out Eric White’s blog for a slick use of extension methods to make it easier to convert types in the System.Xml namespace to types in the System.Xml.Linq namespace , and vice-versa.  Here’s a quick teaser: XElement e = new XElement( "Root" , new XElement...
  • Blog Post: XmlWriterSettings Encoding Being Ignored?

    I had an interesting exchange in an internal mailing list today, and thought that my readers could possibly benefit from this clarification as well. Scenario You are working with the XmlWriter class and trying to write the contents to something. You are expecting the XML declaration to look like: <...
  • Blog Post: Creating RESTful Services Using WCF

    A question popped up on an internal email distribution list today about how to expose a WCF service using WebGet and how to post POX (plain old XML) to that service using the .NET 3.5 WebInvoke attribute. That part's easy, but the harder part is figuring out how to use Fiddler as a client to invoke the...
  • Blog Post: DataBinding WPF to a WCF Service, and Leveraging IValueConverter for Encoded XML

    I met with a customer the other day who had an interesting question: how do I databind a WPF app to a WCF service? I thought this was going to be a really quick answer, it turned into another really long blog post. For the service, I am using a slimmed down version of the default service generated...
  • Blog Post: Modify Message Content With WCF

    Plenty of resources talk about extensibility in WCF, and mention IClientMessageInspector and IDispatchMessageInspector as ways to look at the content of a message, usually dumping to some sort of log. In this post, I'll highlight their obvious strength: the capability to change the content of a message...
  • Blog Post: Using SyndicationFeed to Access a Secure Feed

    Prasad asks how to use the SyndicationFeed type in .NET 3.5 to access a secure feed . I have to say, it depends on what you mean by "secure feed." RSS and Atom are typically delivered through HTTP GET with text/xml as the content-type. I have to assume that you are securing that HTTP GET endpoint...
  • Blog Post: Inline an XML Schema into Your XML Document

    A good friend of mine, Derek Noonan, pinged me to ask how to inline an XML Schema into an XML document. For instance, think about a WSDL document that has the schema types inline with the WSDL document itself, you would want to figure out how to pull the schema information from the WSDL document and...
  • Blog Post: Some XmlSerializer Control in ASMX

    A customer pinged me asking how to control various aspects of the XmlSerializer in ASMX. Here are a few of the ways that you can control the XmlSerializer and how it projects its contract through WSDL.   using System; using System.Web.Services; using System.Xml; using System.Xml.Serialization;...
  • Blog Post: Web Experiences Events in NYC, LA, and Denver

    Come to the Web Experiences events in New York City (May 31st), Los Angeles (June 8th), or Denver (June 15th). At the Web Experiences Events we will demonstrate Microsoft’s next generation of technologies such as Silverlight, Windows Presentation Foundation, Windows Communication Foundation, Windows...
  • Blog Post: A Nostalgic Look at Using XMLHttpRequest with SOAP

    It has been a long time since I did any work with the XmlHttpRequest object directly. Most of my XML geekery is done using .NET on the server side with web services, and ASP.NET AJAX 1.0 eliminated my need to directly touch XmlHttpRequest from JavaScript. However, today I found myself with a need to...
  • Blog Post: Those XML Features Are in VS2005, You Don't Have to Wait for Orcas!

    InfoQ posts about 5 short demos on features you will find in Orcas . Glad to see some buzz being generated about Visual Studio "Orcas" features, but... The Data team's post (the one that the InfoQ article points to) is a little misleading . The post refers to a recent keynote at VSLive! in San Francisco...
  • Blog Post: ASMX 2.0 and SchemaImporterExtensions

    I like the concept of SchemaImporterExtensions in ASMX 2.0. As you import the schema through proxy generation using WSDL.exe, you can generate your own code to control serialization for the client. This can be a great tool if you have a particularly nasty interop problem and the generated proxy code...
  • Blog Post: Sorting XML With System.Xml.XPath.XPathExpression

    This question came up twice this week, so I thought it warranted a quick post. If you want to retrieve a sorted list of nodes from an XmlDocument instance, there are a couple ways to do this. You can use XSLT, or you can write your own sorting algorithm. The .NET Framework provides capability to provide...
  • Blog Post: XmlSerializerFactory Is Pretty Cool

    The XmlSerializerFactory is a new class in .NET 2.0 that provides a factory pattern over the XmlSerializer. It maintains the cache of generated assemblies so that you can avoid the XmlSerializer leaks . Usage doesn't impact your code much at all. Here is a quick demo that I threw together. I pulled...
  • Blog Post: Cool Visual Studio 2005 Feature: Snippets and Document Inference

    I love learning new featuresof Visual Studio. Today, I saw an email from Chris Lovett where he showed a feature of snippets that I had no idea existed. Intellisense in an XML document will actually create an XML document inferred from an associated schema. Start with an XML schema. Here, I created...
  • Blog Post: Controlling Proxy Generation via SchemaImporterExtensions

    In my previous entry on Solving a WS-Oops with ASMX 2.0 , I hinted at a code smell. One of the things that I started thinking about was how to leverage a SchemaImporterExtension to control the proxy generation. I was thinking about controlling the serialization of the custom token and making it simpler...
  • Blog Post: A Quick Primer on Namespace Bindings

    I sent an email trying to explain to a customer why their SOAP packet was not being processed correctly. In effect, the problem was that an element that was supposed to be bound to http://tempuri.org was redefining its namespace binding using xmlns="". A quick example: < transportation xmlns =...
Page 1 of 3 (59 items) 123