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 }); }
While surfing on the internet you see a lot of information and content , such as books , tutorials, songs ,movies,and the rest , which ask for user's feedback . This feedback provides a key metric to recognize the satisfaction of users. For this purpose , the owner of the materials provides a rating system that represents a set of stars , which can be used to receive feedback . The rating mechanism used by ASP.NET needs a synchronous postback. However you can use the rating control that made client callback without refreshing the entire page .
Properties of Rating Control :
AutoPostBack : Set to true if you want to perform a postback by clicking a rating item.
CurrentRating : Sets the initial rating value to display the selected rating item when the page is loaded.
MaxRating : Sets the maximum rating value that you want to allow to rate an item.
ReadOnly : Determine whether or not the rating can be changed.
StarCssClass : Sets the css class for the visible star.
WatingStarCssClass : Sets the css class for the star in waiting state.
FilledStarCssClass : Sets the CSS class for the star in filled state.
EmptyStarCssClass : Sets the CSS class for the star in an empty state.
RatingAlign : Set the alignment for the stars. The value can be either vertical or horizontal.
Properties of Rating Control :
AutoPostBack : Set to true if you want to perform a postback by clicking a rating item.
CurrentRating : Sets the initial rating value to display the selected rating item when the page is loaded.
MaxRating : Sets the maximum rating value that you want to allow to rate an item.
ReadOnly : Determine whether or not the rating can be changed.
StarCssClass : Sets the css class for the visible star.
WatingStarCssClass : Sets the css class for the star in waiting state.
FilledStarCssClass : Sets the CSS class for the star in filled state.
EmptyStarCssClass : Sets the CSS class for the star in an empty state.
RatingAlign : Set the alignment for the stars. The value can be either vertical or horizontal.
Comments
Post a Comment