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 }); }
What are databases? Why do we need them? How does a .NET application work with databases? These are some of the questions whose answers we need to know before we learn about working with databases in ASP.NET.
A. database is a collection of records or information that is stored in the form of tables in a systematic way so that a computer program can access the information easily whenever required. Structured Query Language (SQL) is used for retrieving, storing, deleting, and updating the records stored in a database. An application may need to use the databases for performing various functions, such as:
□ Displaying data in a tabular format by retrieving the records from the database
□ Displaying the data after processing the record retrieved from the database, such as calculating the service duration of each employee and then displaying the records
□ Processing the retrieved data and updating them in the database
□ Deleting the records from the database depending on the choice or condition specified by the user of the application
Here you learn about data bound controls that supported by ASP.NET. You can bind the data bound controls to the data source controls to display the data. Following is a list of data bound controls:
□ The GridView Control
□ The DataList Control
□ The DetailsVlew Control
□ The FormView Control
□ The ListView Control
□ The Repeater Control
□ The DataPager Control
The data source controls allow you to work with different types of data sources, such as SQL server or an XML file. Following is a list of data source controls:
□ The SqlDataSource Control
□ The AccessDataSource Control
□ The LinqDataSource Control
□ The ObjectDataSource Control
□ The XmlDataSource Control
□ The SiteMapDataSource Control
A. database is a collection of records or information that is stored in the form of tables in a systematic way so that a computer program can access the information easily whenever required. Structured Query Language (SQL) is used for retrieving, storing, deleting, and updating the records stored in a database. An application may need to use the databases for performing various functions, such as:
□ Displaying data in a tabular format by retrieving the records from the database
□ Displaying the data after processing the record retrieved from the database, such as calculating the service duration of each employee and then displaying the records
□ Processing the retrieved data and updating them in the database
□ Deleting the records from the database depending on the choice or condition specified by the user of the application
Here you learn about data bound controls that supported by ASP.NET. You can bind the data bound controls to the data source controls to display the data. Following is a list of data bound controls:
□ The GridView Control
□ The DataList Control
□ The DetailsVlew Control
□ The FormView Control
□ The ListView Control
□ The Repeater Control
□ The DataPager Control
The data source controls allow you to work with different types of data sources, such as SQL server or an XML file. Following is a list of data source controls:
□ The SqlDataSource Control
□ The AccessDataSource Control
□ The LinqDataSource Control
□ The ObjectDataSource Control
□ The XmlDataSource Control
□ The SiteMapDataSource Control
Comments
Post a Comment