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 }); }
We are very familiar with java programming, when we come to applet programming then we need some resources like browsers, AppletViewer etc to run the applet code. When i run the applet code in command prompt using following command:
import java.awt.*;
import java.applet.*;
public class design extends Applet
{
public void paint(Graphics g)
{
g.drawString("Hello World",50,100);
}
}
Now, copy this code and following some instructions which is given in the youtube video
appletviewer filename.htmlApplet viewer was not appear in windows 8.1. Then lastly i was decide that i shall install Netbean IDE for applet code.
import java.awt.*;
import java.applet.*;
public class design extends Applet
{
public void paint(Graphics g)
{
g.drawString("Hello World",50,100);
}
}
Now, copy this code and following some instructions which is given in the youtube video
Comments
Post a Comment