Category Archives: ASP.NET MVC

PHPHOST BLOG

Web Hosting Related Articles You May Need

Using OutputCache Action Filter in ASP.NET MVC 4.0

If you have used the output caching facility from the core ASP.NET platform, you are in familiar grounds. The OutputCache filter in ASP.NET MVC uses the same output caching facility and cache’s the output from an action method. Since the output is cached, subsequent request to the same URL are served using the same cache. Needless to say, this offers performance benefits especially for requests Continue reading

Posted in ASP.NET MVC, Syndicated | Comments Off on Using OutputCache Action Filter in ASP.NET MVC 4.0

Building a Knockout.js based client for Web API services in an ASP.NET MVC app

ASP.NET MVC is now a popular web development platform and often first time users have questions regards to implementation of Data Bound behavior in MVC. This is understandably because most Customers at some point have used ASP.NET Web Forms earlier and… Continue reading

Posted in ASP.NET MVC, ASP.NET Web API, KnockoutJS, Syndicated | Comments Off on Building a Knockout.js based client for Web API services in an ASP.NET MVC app

Angular JS – Making Directives self-contained in our ASP.NET MVC Twitter App

This article is sixth in the series, I strongly recommend you go through the previous five if you are new to AngularJS:

Part 1 – Hello AngularJS – Building a Tweet Reader

Part 2 – Using AngularJS Modules and Services Feature in an ASP.NET MVC application

Part 3 – AngularJS – Post data using the $resource Service in an ASP.NET MVC app

Part 4 – Using Custom Directive in AngularJS to create Continue reading

Posted in AngularJS, ASP.NET MVC, Syndicated | Comments Off on Angular JS – Making Directives self-contained in our ASP.NET MVC Twitter App

Using jQuery and Moment.js in ASP.NET MVC to do Custom Unobtrusive Date Comparison and Validation

In fifth issue of DNC Magazine Sumit had demonstrated how to make a ‘dynamic max length’ validator that could unobtrusively validate max-length when the target length was set at run time. We’ll use the same techniques to build an Unobtrusive Date Comparison Validator that will enforce the rule that given two dates, one date should be greater than or lesser than or equal to another date in the Continue reading

Posted in ASP.NET MVC, jQuery, MomentJS, Syndicated | Comments Off on Using jQuery and Moment.js in ASP.NET MVC to do Custom Unobtrusive Date Comparison and Validation

Building a Knockout.js based client for Web API services in an ASP.NET MVC app

ASP.NET MVC is now a popular web development platform and often first time users have questions regards to implementation of Data Bound behavior in MVC. This is understandably because most Customers at some point have used ASP.NET Web Forms earlier and… Continue reading

Posted in ASP.NET MVC, ASP.NET Web API, KnockoutJS, Syndicated | Comments Off on Building a Knockout.js based client for Web API services in an ASP.NET MVC app

Angular JS: Routing to a SPA mode using ASP.NET MVC

In the beginning of the series I had mentioned that Single Page applications (SPA) were gaining popularity and that some of the ready SPA templates that come with ASP.NET MVC are rather opinionated, giving them a steep learning curve. We started with b… Continue reading

Posted in AngularJS, ASP.NET MVC, Syndicated | Comments Off on Angular JS: Routing to a SPA mode using ASP.NET MVC

Using Custom Directive in AngularJS to create reusable JavaScript components for your ASP.NET MVC app

In our previous three articles on Angular JS, we have seen how we could get started by building a small Twitter Client. We have explored the view model, Modules and Services in Angular JS and in our last article saw how to post data using the $resource Service.

Today we’ll see how to use a feature called Directives in Angular JS. Directives allow you to encapsulate custom behavior in an HTML Continue reading

Posted in AngularJS, ASP.NET MVC, Syndicated | Comments Off on Using Custom Directive in AngularJS to create reusable JavaScript components for your ASP.NET MVC app

AngularJS – Post data using the $resource Service in an ASP.NET MVC app

Last time we looked at how we could use the $resource service to make our code more compact when making HTTP calls. Today we will see how to post data to a server using the $resource service.

We’ll continue using the code from the previous article. So you can download the zip from here or fork it from Github.

Posting Data
In our previous article we re-organized our application to use the $ Continue reading

Posted in AngularJS, ASP.NET MVC, Syndicated | Comments Off on AngularJS – Post data using the $resource Service in an ASP.NET MVC app

Using ASP.NET MVC 4 Mobile Template to build an application using Web API, jQuery and jQuery Mobile

In the last few years, the explosion of powerful Mobile devices combined with their capable operation systems has resulted in a Mobile computing wave that is promising to redefine how we use portable computing devices. Fact is most day-to-day Web 2.0 a… Continue reading

Posted in ASP.NET MVC, ASP.NET Web API, jQuery, Syndicated | Comments Off on Using ASP.NET MVC 4 Mobile Template to build an application using Web API, jQuery and jQuery Mobile

Using AngularJS Modules and Services Feature in an ASP.NET MVC application

In our previous post, Hello AngularJS – Building a Tweet Reader we saw how to create a simple ASP.NET MVC application using AngularJS. We saw how the $scope and $http objects were injected in our app by Angular. We also saw how to do Templating and DataBinding. Today we will learn a few more constructs like the Modules and Services.

As with our demos we’ll walk with a code sample to see how the Continue reading

Posted in AngularJS, ASP.NET MVC, Syndicated | Comments Off on Using AngularJS Modules and Services Feature in an ASP.NET MVC application