Category: . Net Framework

Area in MVC

What is Area in MVC. ASP.NET MVC 2 introduced Area. Area allows us to partition large application into smaller units where each unit contains separate MVC folder structure, same as default MVC folder structure Read more →

Apicontroller and controller differences

ASP.NET MVC public class TweetsController : Controller { // GET: /Tweets/ [HttpGet] public ActionResult Index() { return Json(Twitter.GetTweets(), JsonRequestBehavior.AllowGet); } } ASP.NET Web API public class TweetsController : ApiController { // GET: /Api/Tweets/ public List<Tweet> Get() { return Twitter.GetTweets(); } } The first major difference you will notice is that actions on Web API controllers do not return views, they… Read more →

ScriptManager Role in Ajax

The controls that UpdatePanel and ScriptManager are used for the ASP.NET AJAX Enabled sites. We use them; firstly, because in traditional webpages the entire page is loaded after a postback, the HTML sent to the browser is much larger than it needs to be. Second, because the entire page is replaced, the browser has to dismiss the old one and… Read more →