Custom Software Development Trends
|

Custom Software Development Trends

As businesses become more dependent on technology to increase efficiency, they must make sure their custom software solutions take advantage of the latest innovations in the market. For example, while social media has made it easier to reach their audience and boost sales, mobile applications and online stores have made their operations more convenient. With…

ASP.NET MVC 3 – Remote Validation with jQuery
| |

ASP.NET MVC 3 – Remote Validation with jQuery

jQuery validate plugin provides us to validate HTML forms. jQuery validate plugin disables submitting the for until all specified validation rules are valid. It shows an error label next to invalid field and informs users about input errors. ASP.NET MVC 3 uses jQuery validation (http://docs.jquery.com/Plugins/validation) for form validations and jQuery validation library has a remote validation…

How to Change Base Type of Razor View Engine Pages
| |

How to Change Base Type of Razor View Engine Pages

In my previous blog entry (How to create custom HTML Helpers for ASP.NET MVC 3 and Razor View Engine) I mentioned extensibility point of Razor View Engine to change view/page base class type. It’s not a new approach for ASP.NET developers, we have been applying same pattern for ASP.NET Web Pages too. You have to create…

How to create custom HTML Helpers for ASP.NET MVC 3 and Razor View Engine
| |

How to create custom HTML Helpers for ASP.NET MVC 3 and Razor View Engine

I will try to show you a basic feature of ASP.NET MVC, creating custom HTML Helpers. We can reduce the amount of logic in view pages (razor or asp.net –aspx- pages) by extracting logic code as method. Actually by using this feature you have been using extract method refactoring practice. HTML Helper methods are nothing…

Returning a body content with 400 HTTP status code
| |

Returning a body content with 400 HTTP status code

If you are working in a RESTful project or an ajax based web application probably you will need to return http error codes with custom content. Like returning a custom XML message from your endpoint with a specific (like 400 BadRequest) HTTP Status Code. [HttpPost] public ActionResult Create(Customer customer) { var validationResult = _validator.Validate(customer); if…