»
S
I
D
E
B
A
R
«
ASP.NET MVC Controller action being called twice issues
Jul 11th, 2010 by evereq

Your ASP.NET MVC controller action (same action) called multiply times?

Here is a main “check” list for you:

  • Check that you don’t have any image or another elements in View with empty src attribute (<img src=”" /> for example) or have src attribute referencing something that no longer existed. You better check directly in browser “Page Source”, than in View itself due to possibility of some “dynamic” issues when View rendered. Ones you found such empty element in page html source its usually trivial to found same element in your view and fix issue.
  • Check that you don’t have any ajax calls referencing an empty URL (browsers will interpret such empty url as current page and request current page again make controller action execute few times)
  • You forgot to return “false” from JavaScript click event handler for link or button that makes AJAX call. If you forget “return false” browser simply made default action of the link – regular, non AJAX, call to same page)
  • Sometimes Firebug and YSlow Firefox (FF) plugins can cause such issues… Just temporary disable them in FF or check in different browser.

Know another reason? Let me know!

My Favorite Tools
Oct 13th, 2009 by evereq

OK :) So i decide to publish here MyFaTo (don’t forget to register this cool name for next killer start up! ha ha). If seriously, list contain not only Tools, but also frameworks, plug-ins, extensions etc that I use daily (i.e. every working and not working day ;-) .

Will try to keep this list up to date :D

Here is it (some of them I grab from my old micro blog at Tumblr):

* Microsoft Visual Studio 2010 Ultimate (http://www.microsoft.com/visualstudio/en-us/products/2010-editions/ultimate)

* JetBrains IntelliJ IDEA 9 (http://www.jetbrains.com/idea)

* JetBrains ReSharper 5 (http://www.jetbrains.com/resharper) – best productivity add-in for Visual Studio. Don’t use it and code in .NET? You miss whole world!!!

* EntLib (http://www.codeplex.com/entlib) – “Must Use” blocks for Enterprise Software Developers :D

Cover most of Aspects, like Caching, Logging, Security, IoC, etc… Now I use new version 5.0.

* Moq (http://code.google.com/p/moq/) – best available mocking library for .NET 3.5 / 4 (at least today…….. i pretty sure that still exists in testing / mocking / TDD a LOT of space for creative ideas and implementations!)

* Because spend above too much time (just so like Moq) about testing, here will just put references to NUnit (http://www.nunit.org/) and xUnit(http://www.codeplex.com/xunit). Looks like best what we have now (and what is free :D ) for unit testing in .NET……. Sure we want more automation, sure we want….

* TortoiseSVN (http://tortoisesvn.net/)  & TortoiseGit (http://code.google.com/p/tortoisegit)- best available tool to forget about “command-line” style of SVN / Git (at least in daily usage) – integrates to explorer and give you all options available in SVN / Git and even more…

* Firebug (http://getfirebug.com/) – “You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page.”. Any yes, i like it more then IE development toolbar…. not really sure why :) Maybe because it’s more user friendly (or developer friendly) :)

* Quartz.NET (http://quartznet.sourceforge.net) Quartz.NET is a full-featured, open source job scheduling system that can be used from smallest apps to large scale enterprise systems.

* Spring .NET (http://www.springframework.net) Spring.NET framework provides comprehensive infrastructural support for developing enterprise .NET applications
A lot of useful modules (you can use them independently from each other) for AOP, Data Access (NHibernate, ADO.NET etc), Web (DIP for Pages etc…),  Testing, Messaging, Threading and even Quartz integration and many more… :)

If you do a lot of debugging, I suggest to take a look to following tools:

* Crack.NET (http://cracknetproject.codeplex.com/) - A runtime debugging and scripting tool that gives you access to the internals of a WPF or Windows Forms application

* Mole for VS (http://www.codeproject.com/KB/macros/MoleForVisualStudioEdit.aspx) - Visualizer with property editing. Mole is a high performance, full featured, multifunction visualizer that allows detailed inspection of WPF, WCF, WF, ASP.NET, XBAP’s and WinForm applications.

* CPU-Z is a freeware that gathers information on some of the main devices of your system. It is really fast and free way to get info about your hardware! It is also make sense to check another utilities on same site – most are free and useful!

* WiX (Windows Installer XML Toolset) is a Toolset that builds Windows installation packages from XML source code. The toolset supports a command line environment that developers may integrate into their build processes to build MSI and MSM setup packages.

* InstallShield 2010 (http://www.flexerasoftware.com/products/installshield.htm) – my favorite tool to create powerful installers. Exists free, but restricted version. Integrates WELL inside VS 2010!

* Paint .NET – free image and photo editing software (it’s not replacement for Photoshop, but good replacement for build-in Windows paint application with a lot of advanced features)

Check also list of VS add-ins (extensions) that I use available at http://sh.evereq.com/vsextensions

Post Updated 28/12/2010

»  Substance: WordPress   »  Style: Ahren Ahimsa
© Copyright 2008–2010 EvereQ.com All rights reserved. Logos, company names used here if any are only for reference purposes and they may be respective owners right or trademarks.