Contents tagged with ASP.NET

  • Prepare Yourself for ASP.NET 5 - Part 2 (NuGet, Npm, Bower)

    Any package manager basically does the job of pulling requested files from some repository and place them on your local machine. The files under consideration could be binaries (*.dll, *.exe etc.), source code files (*.js, *.cs etc.) or even documentation files (*.html, *.doc etc.). The files you receive is totally dependent on the "package" you are installing.

  • Prepare Yourself for ASP.NET 5 - Part 1 (Less and Sass)

    Some developers may find the new features of ASP.NET 5 bit difficult to grasp. This difficulty arises from the fact that they may not have worked with modern technologies such as Less, Sass, Gulp, Grunt, Bower and others. This article series is intended to give you a quick understanding of these technologies using the current version of ASP.NET MVC and Visual Studio 2013.

  • Track Number of File Downloads in ASP.NET MVC

    A common requirement in content management systems, forums and portals is to track the number of times a file has been downloaded. Such a tracking gives you an idea as to how many users downloaded a file and thus can also hint at the popularity / usefulness of the content. One can always put a hyperlink directly pointing to the file that is to be downloaded. However, such direct links don't reveal any information about the number of times a file was downloaded. Luckily, with a little bit of coding you can track file downloads in ASP.NET MVC. Let's see how.

  • Utilize Custom Events in jQuery Using on() and trigger()

    Handling client side DOM events such as click and keypress is a common task in the jQuery code. The DOM events are always bound to some or the other HTML element. However, there can be situations where you may need to flag some application specific behavior or event. Luckily, jQuery allows you to define your own events that can be raised from within your code. This article shows how jQuery's on() and trigger() methods can be used for the task just mentioned.

  • Load Views From Database in ASP.NET MVC

    ASP.NET MVC organizes view files in the Views folder. This arrangement works fine for most of the applications. However, in some cases you may need to load views from database rather than physical disk file. This article discusses how this can be accomplished.

  • Show Validation Messages Containing Images in ASP.NET MVC

    ASP.NET MVC offers HTML helpers for displaying field level validation error messages as well as validation summary. However, these validation messages are displayed as a plain string. There is no inbuilt way to include images of HTML markup with the output of the validation helpers. In this article I will show how to overcome this limitation using two techniques so that you can display images along with the validation messages.

  • Updated : Creating Wizard in ASP.NET MVC (Part 3 - jQuery)

    In Part 1 and Part 2 of this article series you developed a wizard in an ASP.NET MVC application using full page postback and Ajax helper respectively. In this final part of this series you will develop a client side wizard using jQuery. The navigation between various wizard steps (Next, Previous) happens without any postback (neither full nor partial). The only step that causes form submission to the server is clicking on the Finish wizard button.