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 }); }
Applet is a small java program that run in browser, but JVM is required for run applet in browser. Basically applet is used where user want to put some dynamic content into html page.
There are some features and advantages of Applet
There are some features and advantages of Applet
Features:
- It is a java class file, which is inherit from java.applet.Applet class.
- A applet class file don't take main() method for entry point.
- Applet codes are embedded in HTML page
- For run the applet code in browser, must to install JVM in the client machine
- During the execution of applet code in browser, code first to download in the client machine.
Advantages:
- Very less response time because Applet designed for client machine. If applet is used for server machine then server take more time to execute applet code.
- More secure
- Platform independent, so it can run on any platform that is windows, Linux, UNIX, etc.
- Use for dynamic application
Disadvantages of applet
- For run to its code in browser, must to installed JVM plugin
Comments
Post a Comment