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 }); }
Introduction The ImageButton control is a Button control that displays an image instead of text . The ImageButton control exists within the System.Web.UI.WebControls namespace . This control is specifically useful when you want to create image maps . Image maps are clickable regions on images and can initiate various actions depending on part of the image that you click. Public Properties of the ImageButton Class: CauseValidation : Obtains or set a value showing whether or not validation is performed when the ImageButton control is clicked. CommandArgument : Obtains or sets a argument that provides information about the CommandName property CommandName : Obtains or sets the command name related to the ImageButton control Enabled : Obtains or sets a value indicating whether the ImageButton control can be clicked to perform a PostBack operation to the server. GenerateEmptyAlternateText : Obtains or sets a value showing whether the control generates an alternate-text att