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 →
Category: . Net Framework
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 →
Datetime2,Datetime and Date Datatype differences
larger range of values better Accuracy smaller storage space (if optional user-specified precision is specified) 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 →
Set control id unchange at development time and client site
ClientIDMode is comes with framework 4 or latter. it prevent control renaming functionality in asp.net. Read more →