devermind.com
Adrian Grigore’s software development weblog. Motto: I will not waste my time looking for a clever motto.
  • Home
  • About
  • Contact me
  • Privacy Policy

ASP.NET Category

ASP.NET MVC Tip #2: Turn on compile-time View Checking

ASP.NET, ASP.NET MVC 52 Comments »

I like the compiler to catch as many errors as possible before I start debugging or release my application. This also applies to code nuggets in ASP.NET MVC views, especially since these are not easily unit-testable. But views are not validated at compilation, at least not when using the standard settings for ASP.NET MVC projects.

Tools like Resharper can notify you of syntax errors within your views, but you can still build the project and not get a single error. Instead, your application will crash when trying to evaluate the buggy view.

Fortunately you can easily make Visual Studio compile your views along with the rest of your code. (more…)


May 3rd, 2009 |

Tags: ASP.NET MVC, MSBuild




jQuery Selectmenu widget for jquery-ui 1.8

ASP.NET 6 Comments »

My current web project includes some <select> elements with <group> children to represent projects belonging to certain customers.

Unfortunately there is no way  to style native <select> elements and Firefox lacks proper indentation for the <option> elements belonging to groups. This leads to a very confusing layout:

image

So I used the jQuery.Selectmenu plugin to style the <select> elements in a clean and consistent way across all browsers:

image

Unfortunately the plugin does not seem to be maintained by the jquery.ui group anymore. I made a few minor changes to the plugin so that it works with jquery.ui 1.8 and properly displays groups with space characters.

The plugin is no longer maintained on the jquery.ui wiki, so I am simply uploading my version here:

jquery-ui-selectmenu.zip
Edit : Felix Nagel has created a github branch for the plugin based on my version. He intends to keep maintaining the plugin, so for a more mature version visit his jquery-selectmenu github repository branch and get the plugin from there.

May 11th, 2010 |



Visual Studio 2008 randomly hangs when opening .aspx .ascx or .master files

ASP.NET No Comments »

Visual Studio 2008 has been running quite smoothly on my computer until this week. But then it started randomly hanging when opening an .aspx .ascx .master file. The problem even occurred when opening the file in isolation, instead of opening the file as part of a solution. Deactivating all add-ins did not help.

Fortunately It seems I just found the solution: After uninstalling the “Microsoft Visual Studio Web authoring Component”, the problem seems have to have disappeared. I’m not even sure what this component does, but it seems to be a relict from Visual Studio 2005 and so far I have not noticed any missing features since I uninstalled it.


January 29th, 2010 |

Tags: visual-studio asp.net




  • Feeds

    • RSS feed iconAll Entries
    • RSS feed iconAll Comments
    • RSS feed iconThis Category
  • About Adrian Grigore

    Adrian Grigore Adrian is a software developer from Fulda, Germany. Adrian has been programming C++ applications since 1998. Recently he has been implementing a Web 2.0 SaaS website, so his current development-related interests are ASP.NET MVC, C#, and jQuery.


  • Adrian's (German language) book

    XSLT XUpdate BuchXUpdate mittels XSLT - Ein XUpdate-Prozessor auf XSLT-Basis


  • Pages

    • About
    • Contact me
    • Privacy Policy
  • Links

    • Lobstersoft
    • SonicWeasel
  • Tags

    ASP.NET ASP.NET MVC binding Business client-side form validation client-side validation codedui selenium testing test CSharp custom DAL dataannotationsmodelbinder form validation games guide jQuery jQuery.validate LINQ MSBuild multi-tier mvc POST remote validation shareware tutorial viewmodel visual-studio asp.net xVal
  • Archive

    • May 2010 (2)
    • January 2010 (2)
    • June 2009 (1)
    • May 2009 (1)
    • April 2009 (1)
    • March 2009 (2)
    • February 2009 (1)
    • October 2008 (2)
Copyright © 2010 devermind.com All Rights Reserved
RSS XHTML CSS Log in
Wp Theme by n Graphic Design
Powered by Wordpress