Basic Routing for HttpHandler - Online Free Computer Tutorials.

'Software Development, Games Development, Mobile Development, iOS Development, Android Development, Window Phone Development. Dot Net, Window Services,WCF Services, Web Services, MVC, MySQL, SQL Server and Oracle Tutorials, Articles and their Resources

Tuesday, June 12, 2012

Basic Routing for HttpHandler

Introduction

This article offers a simple solution to mapping URL requests within HttpHandler (or HttpModule, if needs to be) to the form of {controller}/{action}, much like with MVC Routing, but without using MVC.   

The solution is based on a small and independent class SimpleRouter, optimized for work in a performance-demanding application.  

Background    

The mechanism of automatic URL routing is one of MVC's greatest virtues, allowing developers to designate areas, controllers and actions to reflect logic of their application in the most intuitive way, and not just internally, but on the protocol (URL) level at the same time.  

Once you have started using this approach, it is difficult to part with. However, there are certain tasks where you may want to stay away from it, and I do not mean the URL routing itself, but the entire MVC platform. Such tasks may include, but not limited by:


Read More....


I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too. 

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


No comments:

Post a Comment