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
Tracing is way to show diagnostic information about a single
request for an ASP.NET Page. According to msdn article , ASP.NET tracing enables you to follow a page's execution path,
display diagnostic information at run time, and debug your application.
(http://msdn.microsoft.com/en-us/library/bb386420.ASPX
)
Steps to follow how to enable tracing in MVC
Step-1: Open Web.config file
Step-2: Enable
tracing so add <trace> tag which
is inside in <System.Web>
<system.web>
<trace enabled ="true" pageOutput ="false"/>
</ system.web>
Step-3: IgnoreRoute("{resource}.axd/{*pathInfo}") method create a trace file
with .axd extension(This method is available in RouteConfig.cs file)
Step-4: Run your application
Step-5: Open trace.axd file in url
claminKgistmi-Rochester Sima Lenz https://wakelet.com/wake/A1H0Kp5ZKnwAQY8rCAAOy
ReplyDeleterecnalime
Aanabsimp-ke-1981 Megan Edwardz Click
ReplyDeleteBest
neuturwehrru