Geeks With Blogs
The Quandary Phase This code was generated by a tool.
Here’s a simple code snippet which shows how to create a new app pool and site in IIS via a Powershell script. It also checks for app pool and site existence before trying to create new items. It’s quite a nice example of why Powershell is so easy to work with- yes, you can achieve the same thing in a batch file, but this is just so much cleaner: Import-Module ......

Since this has consumed rather more of my afternoon than I had anticipated, it seems worth sharing.There don't seem to be too many articles out there on configuring FTP in IIS 7/8 with user isolation, over TLS, and there are quite a few points at which it's fairly easy to come a cropper.Firstly, the scenario: I wanted all of our FTP sites to require ......

Yes, I know, the multiple file uploading in ASP.NET issue has been exhaustively covered already elsewhere. There are examples of multiple file uploading using ASP.NET user controls, there are examples using jQuery, there are examples using flash to provide progress feedback, and even examples in Silverlight. However, what I wanted was a simple solution ......

Here’s a quick tip for string cleaning in SQL. Let’s say you have a string, perhaps one being imported from another data source, and you want to trim all the leading and/or trailing non-alphanumeric characters. For example, you may have the input string: ',,, foo bar $$$' Which needs to be cleaned before inserting into the database. Perhaps you want ......

I have recently completed work on a WPF application which required a reasonable amount of interaction with Microsoft Outlook. Specifically, we needed to implement two operations: firstly, we needed the ability to generate a new email and open it in Outlook (without sending it); and secondly, we needed to send an email via Outlook behind the scenes, ......

Ran into a slightly problematic issue today: I was working on an SSRS report project which had been pulled down from source control. The project contains several reports, each of which contains a number of embedded images. I was tasked with developing a number of new reports, each of which had to follow the same styling. All well and good so far, but ......

Here's a really short and simple bit of code that has the potential to be a bit of a time-saver. The FindControl method of the Control class is used to find a specific child control of a given parent, searching by ID. This method, however, doesn't search the control hierarchy recursively: it searches the direct children of the specified parent control ......

I have been playing around with the ASP.NET ListView and Repeater controls quite a bit recently, and thought that a simple calendar control with date range selection capabilities baked-in would make a good example of how these controls can be used to produce some pretty neat functionality without a great deal of code. The System.Web.UI.WebControls namespace ......

This is another installment of how to use the ASP.NET ListView and Repeater to generate repeating groups of controls in ASP.NET pages in scenarios which often lead developers to add unnecessary complexity to their pages by resorting to dynamically generated controls. Part 2 demonstrated using the ListView control to maintain the values in a repeating ......

Wow... that's a lot of capitals and acronyms to squeeze into a single title (well, ok... one acronym, and two initialisms, if you want to split hairs). Anyhoo... after roundly dismissing the WPF WebBrowser control in an earlier article, I now find it's (ahem) not quite so bad after all. I needed to create a WYSIWYG HTML editor in WPF for a project I'm ......

Copyright © Adam Pooler | Powered by: GeeksWithBlogs.net | Join free