Divyang's ICollection


ViewBag v/s ViewData

Hi Friends,If you go through ASP.NET MVC 3.0 framework then you will find  two frequently  used collection of data object which  used to pass data between control and views  and partial views. as both are doing similar functionality but has  some difference in that , so today , I would like to  put some difference of those and interoperability of…

Legacy Url Routing when application move from webform to MVC

// The legacy route class that exposes a RedirectActionNamepublic class LegacyRoute : Route{public LegacyRoute(string url, string redirectRuleName):base(url, new LegacyRouteHandler()) { RedirectRuleName = redirectRuleName; }public string RedirectRuleName { get; set; }public override VirtualPathData GetVirtualPath(RequestContext requestContext, RouteValueDictionary values) {return null; }}  / The legacy route handler, used for getting the HttpHandler for the requestpublic class LegacyRouteHandler : IRouteHandler{public IHttpHandler GetHttpHandler(RequestContext requestContext) {return…