Attach JavaScript during Async Postback

JavaScript files can easily be attached to any document using the usual html code: <script src="Scripts/jquery.blockUI.js" type="text/javascript"></script> Thats great...we all know that. But what if I want to dynamically attach a script file from codebehind. Thats an easy one too:...

Read More

Hiding a GridView Column

I was working on a dynamically bound GridView, to which some scenario's had a column shown, and sometimes it was not shown. Unlike GridView's that are statically databound on the page you cannot refer to "ReportGrid.Columns" and simply hide it.......

Read More

ASP.NET Data Binding and Architecture

The architecture of your project can make or break it. It determines how fast you can add components, your dev time, time to fix bugs, etc. That being said, one architecture component in particular I have struggled with is how...

Read More

ASP.NET EventLog Access

Writing to the Event Log in ASP.NET is a piece of cake. The following is a static class that I have used time and time again to simply encapsulate the event logging writing code: public class EventLogging { public static void...

Read More

ValidatorEnable

Came across this today when working around some JavaScript validation. I essentially needed to force some required fields under certain circumstances and not others. I desperately looked around to find a way to disable a validator. Eventually I came across...

Read More