.NET


I know the new MVC 5 HTML tag attributes for rendering ASP.NET widgets is all the rage, but there are a lot of useful approaches to using the server-side HTML helpers.  One simple extension method we are going to look at is adding control level security.  Often within our applications, we have a means of […]

I got this error strangely enough in one of my ASP.NET web forms projects.  I tried debugging through the application, but could never get Visual Studio to hit the actual error.  Some research leads to the following two posts that may offer some help: IIS Integrated Mode and Application Start “Request is not available in […]

In many social networking sites, pasting a URL from a news site into Facebook or Linked In displays a nice synopsis of that link.  The URL pasted into such status box is read, capturing information about the page and it’s specific contents, such as a title,description, thumbnail, etc.  One common technique used is to extract […]

WURFL is a service used to detect mobile devices.  Stated on their web site, WURFL “is a Device Description Repository (DDR), i.e. a software component which contains the descriptions of thousands of mobile devices. In its simplest incarnation, WURFL is an XML configuration file plus a set of programming APIs to access the data in […]

I’m really impressed by the dynamic keyword as a part of the .NET 4.0 framework.  Dynamic really opens up a lot of capabilities.  Dynamic will allow me, as I develop software, to avoid wrapper components and avoid having to use reflection in certain places.  The first scenario is where I had two similar, but distinct […]

I posted a while back about a way to embed in metadata about an entity’s tables and columns into the entity itself. This is useful if you disable the auto select and auto named parameters features of PetaPoco. However, I realized how bad what I did actually was. The approach I took, to embed that […]

Controls like the LinkButton control in web forms all provide a postback mechanism to post data to the server through a client-side JavaScript method called __doPostBack (or alternatively WebForm_DoPostBackWithOptions).  This method takes the unique ID of the control as the first argument, and a combination of command name and/or argument as the second parameter (concatenated […]

JQuery provides a superb way of easily finding and manipulating elements.  But, if you don’t watch yourself, it can quickly become  quite dangerous and easily be broken.  For intance, imagine this file structure, with some example elements listed as its children. Page UC 1 – div class=”Target1″ UC2 – div class=”Target2″ and so on.  If […]

I recently created an MVP framework (http://nucleo.codeplex.com) that I was in the process of porting to a Silverlight 4 library for a project I’m working on.  As I was linking code to the project, I quickly realized that since the SIlverlight 4 is a subset of the .NET framework, I was running into issues with […]

Being that I’ve been undertaking several Model-View-Presenter projects, I’m writing this post to illustrate the way a view uses an event.  In the Model View Presenter pattern, the primary means a view communicates with the presenter is using events.  Methods of the view can be called from the presenter, but typically I’ve seen mostly events.  […]

Next Page »