Weblog Posts in January 2011

Changing an HTML Form's Target with jQuery
January 30, 2011 @ 3:44am

If you have multiple submit or link buttons in an ASP.NET Page and one or more of those buttons needs to post to a different target there's no built-in way to force one or more of those buttons to POST to a different frame/window. With a little bit of JavaScript though it's real easy to change the form's target dynamically as needed.

Retrieve the full ASP.NET Form Buffer as a String
January 17, 2011 @ 3:04am

How do you get the full Request.Form buffer in an ASP.NET request as a string? Here's how with a simple function.

CLR Version issues with CorBindRuntimeEx
January 14, 2011 @ 12:45pm

I’m working on an older FoxPro application that’s using .NET Interop and this app loads its own copy of the .NET runtime through some of our own tools (wwDotNetBridge). This all works fine and it’s fairly straightforward to load and host the runtime and then make calls against it. I’m writing this up for myself mostly because I’ve been bitten by these issues repeatedly and spend 15 minutes each...

IntelliSense for Razor Hosting in non-Web Applications
January 12, 2011 @ 3:06pm

Getting IntelliSense into your Razor templates in Visual Studio is possible but there are a few tricks to make it work. Here's how...

Allowing Access to HttpContext in WCF REST Services
January 10, 2011 @ 1:02pm

WCF REST Services do not make it easy to access all the features of the HTTP protocol, so in some situations it's just much easier to use ASP.NET compatibility to get direct access to the HttpContext object for access of all the HTTP headers and features.

WCF REST Service Activation Errors when AspNetCompatibility is enabled
January 06, 2011 @ 2:54pm

Ran into a version problem with WCF REST Services when using on IIS and with ASP.NET Compatibility enabled. Turns out there's a potential version conflict in the system .config files that can cause this error to creep up - here's how to fix it.

1 comment