Home / ASP.NET Weblogs

July 2008 - Posts

Posted to:
by: 
07-11-2008, 10:16 AM

BLOG CHAT: SQL Injection

So finally all the details have been worked out.  We are going to have this chat on Friday July 18th.  At 2:00 PM EST.  That is 11:00 AM PST. Shortly I will have a link where you can add a reminder to your calendar about this chat. ...
Posted to:

Silverlight control samples for Beta 2

Shawn has updates the Silverlight Control tutorial for Beta 2.  Not only is this a good thing because of some of the changes in the Silverlight platform, but there was a big addition that greatly simplifies creating controls, Visual State Manager...
Filed under: ,
Posted to:

ASP.NET MVC Tip #17 – How to Run an ASP.NET MVC Application

In this tip, I explain the different options for running an ASP.NET MVC application from Visual Studio 2008. I recommend that you run an ASP.NET MVC application directly from the ASP.NET Development Web Server. An ASP.NET MVC application works differently...( read more ) Read More...
Filed under: , ,
Posted to:

Claim based security made easy

When we implemented claim based authorization in LitwareHR, we had to write a lot of code and play with non-trivial configurations (LitwarehR includes 2 STS and all the supporting infrastructure for securing the web services and the callers to them). Not being a security expert myself, I found the “theory” behind this amazingly simple and powerful, but the “practice” quite complex. The good news is that all this just got much easier with the release of “Zermatt”: “Zermatt” is a .NET developer framework and SDK that helps developers build claims-aware applications to address today’s application security requirements using a simplified model that is open and extensible, can improve security, and boosts productivity for developers.  Developers...
Posted to:
by: 
07-10-2008, 12:15 PM

Very Simple .NET Thumbnail Creation Code

When I was working the update for my Ajax demo , I needed to create thumb nail from a director of photos.  There are tons of tools out there to do this, but I thought I'd share the very simple code I used.  It takes all the jpgs in the root path and creates 160x120 thumbnails of them. It also copies the original photo into fullpath.    namespace ThumbNailer { class Program { static void Main( string [] args) { string rootPath = @"C:\Users\brada\Desktop\ForDemo" ; string thumbPath = Path .Combine(rootPath, "Thumb" ); if ( Directory .Exists(thumbPath)) DirectoryDelete(thumbPath); Directory .CreateDirectory(thumbPath); int imageNumber = 0; foreach ( string s in Directory .GetFiles(rootPath, "*.jpg"...
Filed under:
Posted to:

What would make troubleshooting easier

So I have asked How do you Troubleshoot ASP.NET problems- so now I would like to know what would you like to see that would allow you to figure out issues faster? I have a few ideas of my own, but I don’t want to sway anyone in one way or another. Would...
Filed under: , ,
Posted to:

ASP.NET MVC Tip #16 – Create ASP.NET MVC Macros

In this tip, I show you how you can create a Visual Studio 2008 macro that creates a new MVC controller, view folder, and controller unit test with a single command. Don’t get me wrong. I like the Visual Studio 2008 designer tools. I like dragging...( read more ) Read More...
Filed under: , ,
Posted to:

Updated Silverlight Control Tutorial for Silverlight 2 Beta 2

I've finally gotten the Silverlight Control tutorial sample updated for Silverlight 2 Beta 2. There have been some non-trivial changes to how controls are written between Beta 1 and Beta 2. My goals were to do more than a straight port. I wanted to take advantage of some of these changes as an example of how to use the new functionality, and I wanted to address some feedback I've gotten from the original post. Some of the ways I chose to do things in the original post were overly complicated, and I took this opportunity to streamline things a bit. The result is the same functionality with a lot less code. The major change centers around the Visual State Manager. When my team and I first started working with Silverlight, we found the...
Filed under:
Posted to:

New IIS7 Releases: URL Rewrite, Application Routing and Load Balancing, and PowerShell Cmd-lets

In last a few weeks, the IIS team has released 3 IIS extensions updates: · URL Rewrite Module CTP1 · Application Request Routing CTP1 · PowerShell Provider CTP2 URL Rewrite Module URL Rewrite Module is a rule-based rewriting engine for changing request URL’s before they get processed by web server.  It can be used to provide user and search engine friendly URLs for dynamic web applications, rewrite and redirect URLs based on HTTP headers and server variables, and control access to web site content. · Additional information is available at Using URL Rewrite Module . · Downloads: X86 X64 · Support: URL Rewrite Module forum . Application Request Routing Application Request Routing (ARR) is a proxy based...
Posted to:
by: 
07-09-2008, 12:04 PM

POP QUIZ: What are Free Threads in the Threadpool

So here is the next trivia question for everyone.  If you have tried to change the Threadpool settings for .NET, you have seen the minFreeThreads and minLocalFreeThreads settings. What are those settings really used for?  What do they control...

« First ... < Previous 5 6 7 8 9 Next > ... Last »

Archives