I want to show Components in a tabs , so first of all create few components. In this project we have three components, First View Component public class AllViewComponent : ViewComponent { private readonly UserManager<ApplicationUser> _userManager; public AllViewComponent(UserManager<ApplicationUser> userManager) { _userManager = userManager; } public async Task<IViewComponentResult> InvokeAsync() { List<StudentViewModel> allUsers = new List<StudentViewModel>(); var items = await _userManager.Users.ToListAsync(); foreach (var item in items) { allUsers.Add(new StudentViewModel {Id=item.Id, EnrollmentNo = item.EnrollmentNo, FatherName = item.FatherName, Name = item.Name, Age = item.Age, Birthdate = item.Birthdate, Address = item.Address, Gender = item.Gender, Email = item.Email }); }
There are many difference in asp and asp.net
(1)
ASP : If you want to make a project then you write more code compare to ASP.NET
ASP.NET : Write Less code compare to ASP
(2)
ASP: ASP use Recordset for data binding
ASP.NET : ASP use ado.net, entity framework and many more for data binding
(3)
ASP: ASP does not support rich control like calander control
ASP.NET : ASP.NET support rich control
(4)
ASP: ASP have only one page for designing and coding (presentation + business logic on single page)
ASP.NET : ASP.NET have two pages for designing and coding (presentation page (.aspx) + business logic page (.aspx.cs))
(5)
ASP: ASP version 1.0 or 1.1
ASP.NET : Updated Version
(1)
ASP : If you want to make a project then you write more code compare to ASP.NET
ASP.NET : Write Less code compare to ASP
(2)
ASP: ASP use Recordset for data binding
ASP.NET : ASP use ado.net, entity framework and many more for data binding
(3)
ASP: ASP does not support rich control like calander control
ASP.NET : ASP.NET support rich control
(4)
ASP: ASP have only one page for designing and coding (presentation + business logic on single page)
ASP.NET : ASP.NET have two pages for designing and coding (presentation page (.aspx) + business logic page (.aspx.cs))
(5)
ASP: ASP version 1.0 or 1.1
ASP.NET : Updated Version
Comments
Post a Comment