Geeks With Blogs
Scott Lock Thoughts on .Net, and Windows Phone March 2007 Entries
Getting the filename from a path string - System.IO.Path to the rescue
I was looking for something simple to get the file name for the selected file of an OpenFileDialog in C# today. Of course you can parse the string looking for backslash, etc. It annoyed me that there was no FileText property or something similar which returns this little nugget. After a short Google search, I found that the System.IO namespace contains Path.GetFileName. This helpful little static method returns the filename given a path (Path.GetFileName(string path);) (supported in 1.x, 2.0, 3.0). ......

Posted On Thursday, March 29, 2007 10:22 PM

March 27th - March Caparea.Net Users Group Meeting
Capital Area.Net Users GroupMeeting Announcement - March 27th, 7:00PM Meeting Announcement - March 27th - 7:00PM - Frank LaVigne - Developing for the Tablet PC Speaker: Frank La Vigne Location: AT&T Building, 1900 Gallows Road, Tysons Corner Learn all about the the basics for building Smart Client applications that leverage the portability and power of the Tablet PC platform. In this session, Frank La Vigne introduces developers to the hardware, software, and development options available to ......

Posted On Thursday, March 22, 2007 10:18 AM

Posted to Geeks With Blogs Using BlogMailr
My friends at Telligent have a great tool for posting to blogs via email called BlogMailr. If your blog software supports the Metablog API, you are good to go! It’s easy to set up and use. Thanks to my friend Frank La Vigne for turning me on to this tool ......

Posted On Thursday, March 22, 2007 8:04 AM

Transforming an XML String in Memory Outputing a String
If you ever wanted to take XML as string in memory, transform it, and out the results as a string: private bool verifyTransformation(string xml, string xslPath) { //create an XPathDocument using the reader containing the XML MemoryStream m = new MemoryStream(System.Text.En... XPathDocument xpathDoc = new XPathDocument(new StreamReader(m)); //Create the new transform object XslCompiledTransform transform = new XslCompiledTransform(); //String to store the resulting transformed ......

Posted On Wednesday, March 21, 2007 10:06 AM

Scott Guthrie Featured in Red vs. Blue!
Channel 9 has a video of Scott Guthrie (ASP.Net Team) making an appearance in the popular Halo series, RED vs. Blue. ......

Posted On Wednesday, March 21, 2007 8:37 AM

Copyright © Scott Lock | Powered by: