Quantcast
Channel: Brian Mains Blog
Browsing all 15 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Been Thinking About: IStateManager and ASP.NET AJAX

Do we really even need IStateManager anymore now that we have ASP.NET AJAX?  In the olden days IStateManager was used to retain the state changes made to a list-bases resource.  These changes would...

View Article



Image may be NSFW.
Clik here to view.

LINQ to XML: Non white space characters cannot be added to content.

I got this error when setting up some LINQ to XML code and I couldn't figure out why I kept getting this error as it made no sense.  After doing a quick search, I realized my root element was this:var...

View Article

Image may be NSFW.
Clik here to view.

Row Not Found Or Changed LINQ to SQL Error

You may have gotten this error when trying to update data, as I recently did.  After reading up on the subject, I found this which helped:...

View Article

Image may be NSFW.
Clik here to view.

Will MVC Replace Web Forms?

There has quite been the ASP.NET vs. MVC debates going on the internet these days.  I must admit, I'm amused by it because it really comes down to personal preference, and what you are comfortable...

View Article

Image may be NSFW.
Clik here to view.

MVC and GetWebResourceUrl

Recently, Rick Strahl blogged about his issues with MVC and using some of the essential methods were available in ASP.NET web forms development, considerably the GetWebResourceUrl method (as detailed...

View Article


Image may be NSFW.
Clik here to view.

Paging Table Columns Using JavaScript

I recently have been thinking about tabular displays and how to make them better.  For instance, suppose that your final output of an application looked like the following:<table id="tbl">...

View Article

Image may be NSFW.
Clik here to view.

Been Thinking About: Controlling Flow of Classes - Props vs Methods

I been thinking about when I should differentiate between methods and properties.  For instance, suppose that I have the following class:public class OrderProcessor{    public bool RoundToNearestCent {...

View Article

Image may be NSFW.
Clik here to view.

Sys.UI.DataView rendered event

Looking at the MSDN documentation for the events pertaining to Sys.UI.DataView, I noticed that it lacked in comparison to the CHM file that comes with the MS AJAX 4.0 Preview 5 download.  One of these...

View Article


Image may be NSFW.
Clik here to view.

Telerik RadCompression is awesome!

The latest release of Telerik's RadControls framework for ASP.NET AJAX has a really cool feature: RadCompression.  Telerik provides a HTTP module that compresses your JavaScript files, Silverlight...

View Article


Image may be NSFW.
Clik here to view.

) Expected Error in ASP.NET MVC

I've been just getting into MVC lately and run into a weird error, mostly weird because it's mostly due to the error message itself than the actual problem.  The problem is very easy to fix, but first,...

View Article

Image may be NSFW.
Clik here to view.

Controller IControllerFactory could not create a controller for controller...

I got this error when I tried to run this code in my view.<img src='<%= Url.Content("~/Content/Images/logo.gif") %>' />At first I didn't realize the underlying issue but then quickly...

View Article

Image may be NSFW.
Clik here to view.

Singular Reponsibility Principle (SRP) could have came in handy....

I was going back through an application I am currently working on for a client and trying to come up with a way to bridge a gap between that application and a new web site they want, which has two...

View Article

Image may be NSFW.
Clik here to view.

Location Formats for ASP.NET MVC

ASP.NET MVC is a wonderful thing.  One of the many great features is the ability to customize all of the .NET framework's code by swapping out one implementation and using another.  One such instance...

View Article


Image may be NSFW.
Clik here to view.

Visual Studio 2010 and "Attempted to read or write protected memory. This is...

I recently got this error with an upgraded project to VS 2010 (web forms).  I searched the internet for the error, which I thought wasn't really an error due to a corruption since I could get an MVC...

View Article

Image may be NSFW.
Clik here to view.

Entity Framework 4 and "The conversion of a datetime2 data type to a datetime...

You may get an error like the one above appear with a System.Data.UpdateException type.  This exception actually comes from the database, and is wrapped by the entity framework library.  The error...

View Article

Browsing all 15 articles
Browse latest View live


Latest Images