Posts

Showing posts with the label MVC

Logging Errors with ELMAH (Error Logging Modules And Handlers) in MVC 4

Image
ELMAH is an alternative to HMS (Health Monitoring System) for logging errors which is free and available under open-source which is created and managed by Atif Aziz . HMS was ( was...why? ) great ( with few pains ) because it has option to capture all events as well as errors. With HMS developers has to design the UI for viewing the log information but with ELMAH, you just need to hit a URL to view log information.

Removing or Customizing View Engines in MVC

Image
In this article you will learn how to remove or customize View Engines which is not being used by application.

Enable Password Resetting with Simple Membership in MVC 4

Image
In this article you will learn how to enable password resetting (in case user forgot the password) with Simple Membership in MVC. User needs to type his username and system will check its existence, if found correct this will send an email containing dynamically generated URL with username and password reset token.

Output Caching in MVC

Image
In this article you will learn everything about ‘Output Caching in MVC’. I will take you by showing some real examples to make your view crystal clear.

Best way to prevent Cross Site Request Forgery Attacks in MVC 4

Image
In this article you will learn what CSRF is and best way to prevent such attacks. After a quick introduction about CSRF I will show you an example where attacker will change the profile information with one-click.

Avoiding Cross-Site Scripting (XSS) Attacks with AntiXSS in MVC 4

Image
In this article you will learn how to avoid XSS attacks in MVC Application with Microsoft’s AntiXSS library. I will show you a case where user will submit the  malicious  HTML markup with message and it will start displaying annoying alert. Then I will move on and show you how to prevent it with AntiXSS.

jQuery UI Autocomplete with JSON in MVC 4

Image
In the last post jQuery Ajax GET and POST calls to Controller's Method in MVC we saw an example on ‘ GET call with parameter to Controller’s Method which will return JSON data ’ (in case you missed, go and read that before continuing here), let me put the screenshot here.

jQuery Ajax GET and POST calls to Controller's Method in MVC

Image
In this blog post I am going to cover some really interesting stuff which is very useful today in web application developments. You will learn how to make jQuery Ajax GET and POST calls to controller methods.

Ajax.ActionLink and Html.ActionLink in MVC

Image
In this post you will learn use of Ajax.ActionLink helper and Html.ActionLink. I will compare both to show you how it is different. Okay, let’s begin with Html.ActionLink.

Quick Search, Replace and Navigate in Visual Studio IDE (A Must Read Post)

Image
I would call this post as Tips/Tricks post because this post contains information about Visual Studio IDE features. I can see large number of developers are not familiar with these features. So, I thought writing a blog post collecting searching, replacing and navigating tips which is vital to happy and productive.

Cascading DropDownList in ASP.NET MVC

Image
In this blog post you will learn how to create cascading DropDownList in ASP.NET MVC. I will take you through step by step approach so, let’s begin.

Custom Validation with IValidatableObject in MVC

Image
In this post you will learn how to create a self validatable object using IValidatableObject to validate data in MVC.

DropDownList Helper Data Binding in MVC

Image
In this post you will learn how to bind data to a DropDownList helper in MVC. We will try binding data to a DropDownList from a List<SelectListItem>, a List<Model> and also from a database.

Building NerdDinner.com MVC Application: Videos

Image
Hello Folks. The videos listed in this post are not mine, these are recorded by Microsoft people for the community. I hope this can be useful.

Adding metatags on .cshtml pages in MVC

Image
This quick post is a response to a question I received today on Facebook. Please follow the steps to add metatags on .cshtml pages:-

Strongly Typed Views in MVC

Image
When you add a new View in MVC, you get an opportunity to create it strongly typed. In the image given below, when you check ‘Create a strongly-typed view’ and select the ‘Model class’ you get following code snippet on the view page.

HTML Encoding in MVC

Image
One of the best feature in Razor view engine that I like most is ‘HTML Encoding’. In many cases (like a comment form on blog) we receive the data from users and he may be trying to victimize us by sending some malicious scripts causes cross-site script injection attacks (aka XSS attack).

Deploying an ASP.NET MVC 4 Web Application on Windows Azure

Image
In this video you will learn how to deploy ASP.NET MVC 4 Web Application on Windows Azure environment. Sorry for the noisy video.

Modernizr Library in MVC 4

Image
In this post you will learn how developers take the advantage of  Modernizr   in MVC 4 Applications.

Twitter RSS Feed Reader in MVC 4

Image
In this blog post you will learn how to setup the Twitter RSS Feed Reader in MVC 4. I’m using the same technique I used in my last post to read the Facebook feeds. Let’s look at the image that we will be creating using the given code.

Popular posts from this blog

Migrating database from ASP.NET Identity to ASP.NET Core Identity

Customize User's Profile in ASP.NET Identity System

Lambda two tables and three tables inner join code samples