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 }); }
Debugging is the process of isolating and correcting the errors. One simple method of debugging is to place printf( ) statements throughout the program to display the values of variables. It displays the dynamics of a C program and allows the programmer to examine and compare the data at various points. Once the location of an error is identified and corrected, the debugging statements should be removed. We can use the conditional compilation statements to switch on or off the debugging statements.
Another approach is to use the process of deduction. Here, we arrive at the errors, using the process of elimination and refinement. This is done using a list of possible causes of the error.
The third error-locating method is to backtrack the incorrect results through the logic of the program until the mistake are located. The program is traced backward until the error is located.
Another approach is to use the process of deduction. Here, we arrive at the errors, using the process of elimination and refinement. This is done using a list of possible causes of the error.
The third error-locating method is to backtrack the incorrect results through the logic of the program until the mistake are located. The program is traced backward until the error is located.
Comments
Post a Comment