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
In this article i will show you how to open new window when we click on button using JQuery. I will give an example of it. Also do some thing like when we click on other button then opened new window will closed also mentioned in the example.
Description
I have explained Get browser details using JQuery, Button work as fileupload control in JQuery.
Source code
<!DOCTYPE html>
<html>
<head>
<title> OPen and close window using JQuery </title>
</head>
<body>
<form name="form1">
<input type="button" value="Open New Window" id="btnOpen" />
<p> <input type="button" value="Close New Window" id="btnClose" />
</form>
<script src="https://code.jquery.com/jquery-2.1.4.js"></script>
<script type="text/javascript">
var Window1;
$(function () {
$(form1.btnOpen).click(function () {
Window1 = window.open('', 'YourWindow', 'height=500,width=500');
});
$(form1.btnClose).click(function () {
Window1.close();
});
});
</script>
</body>
</html>
In this article i will show you how to open new window when we click on button using JQuery. I will give an example of it. Also do some thing like when we click on other button then opened new window will closed also mentioned in the example.
Description
I have explained Get browser details using JQuery, Button work as fileupload control in JQuery.
Source code
<!DOCTYPE html>
<html>
<head>
<title> OPen and close window using JQuery </title>
</head>
<body>
<form name="form1">
<input type="button" value="Open New Window" id="btnOpen" />
<p> <input type="button" value="Close New Window" id="btnClose" />
</form>
<script src="https://code.jquery.com/jquery-2.1.4.js"></script>
<script type="text/javascript">
var Window1;
$(function () {
$(form1.btnOpen).click(function () {
Window1 = window.open('', 'YourWindow', 'height=500,width=500');
});
$(form1.btnClose).click(function () {
Window1.close();
});
});
</script>
</body>
</html>
Code Generate the following output
Comments
Post a Comment