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 }); }
Computer Programming: As the name suggest , RoundedCornerExtender attaches and makes the corners of any ASP.NET controls round . It adds a background panel to any ASP.NET control so that the control appears with rounded corners. The overall height of the original control changes slightly . RoundedCornersExtender has only three important properties such as:
TargetControlId : Set the ID of the control whose corners are to be modified .
Radius : Set the Radius of the control corners . By default the value is 5 pixel.
Corners : Set the corners of the target control , which you want to round.
Before copy this code please add ajax ControlToolkit to your website/project
Lets Take an Example
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Roundcorneraspx.aspx.cs" Inherits="Roundcorneraspx" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<div>
<asp:Panel ID="Panel1" runat="server" Width="300px" Height ="200px">
This is my panel control
visit : http://dotprogramming.blogspot.com
</asp:Panel>
<asp:RoundedCornersExtender ID="RoundedCornersExtender1" runat="server" TargetControlID ="Panel1" Radius ="10" Corners ="All" BorderColor ="SkyBlue" Color ="Black">
</asp:RoundedCornersExtender>
</div>
</form>
</body>
</html>
OutPut
TargetControlId : Set the ID of the control whose corners are to be modified .
Radius : Set the Radius of the control corners . By default the value is 5 pixel.
Corners : Set the corners of the target control , which you want to round.
Before copy this code please add ajax ControlToolkit to your website/project
Lets Take an Example
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Roundcorneraspx.aspx.cs" Inherits="Roundcorneraspx" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<div>
<asp:Panel ID="Panel1" runat="server" Width="300px" Height ="200px">
This is my panel control
visit : http://dotprogramming.blogspot.com
</asp:Panel>
<asp:RoundedCornersExtender ID="RoundedCornersExtender1" runat="server" TargetControlID ="Panel1" Radius ="10" Corners ="All" BorderColor ="SkyBlue" Color ="Black">
</asp:RoundedCornersExtender>
</div>
</form>
</body>
</html>
OutPut
Comments
Post a Comment