// Creating table and inserting some records create table email_list ( name varchar(100), email varchar(50) ) go insert into email_list values ('himanshu', 'him@gmail.com'); insert into...
Provides clean separation of concerns(SoC) between UI(Presentation layer), Model(transfer object/domain object/entities) and Business logic(Controller). Enables Test Driven Development (TDD)./Easy to unit test. Easy integration with JavaScript...
There are several ways available to pass data from a controller to a view in an ASP.Net MVC application. 1.ViewBag or ViewData 2.Data Strongly typed view The following are...
JQuery is, a library of JavaScript code. JQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax...
TempData: TempData is also a dictionary derived from TempDataDictionary class and stored in short lives session and it is a string key and object value....
ASP.NET MVC offers us three options ViewData, VieBag and TempData for passing data from controller to view and in next request.ViewData and ViewBag are almost...
ViewData ViewBag TempData It is Key-Value Dictionary collection It is a type object It is Key-Value Dictionary collection ViewData is a dictionary object and it...
int i= 0; MessageBox.Show(i.ToString()); MessageBox.Show(Convert.ToString(i)); We can convert the integer i using i.ToString () or Convert.ToString The basic difference between them is “Convert” function handles NULLS while“.ToString()” does not it...