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 }); }
You are a developers and you want to create a new project. Lots of code are hidden behind the .dll file, its a symbol of good programmer. Learn how to hide code from user in asp.net(How to create .DLL file in asp.net). A .DLL file contains some namespaces, class definition, methods and some properties. You want to view the functions used in that dll so you should go for Object browser, which is available in visual studio. Lets take a step to view the .DLL file in visual studio.
Step-1: Right click on any .DLL file, Open selected file in Object Browser and press 'ok' Button.
Step-1: Right click on any .DLL file, Open selected file in Object Browser and press 'ok' Button.
Step-2 : Expand the file, which is contain namespace and methods.
Left panel contains files and right panel contains methods and properties and many more item which is related to selected file in left panel. So you can easily use namespace and their methods. Learn How to use this.
Comments
Post a Comment