Irwsoft NETCore Asp

Brief Information
DescriptionA selection tag-helper with a list of items.
FeaturesSingle and multiple selection.
ListBox tag-helper
ListBox tag-helper

The ListBox tag-helper is a selection tag-helper with a list of items. This tag-helper have single and multiple selection.

Example : Input Country data of Person table with ListBox

C# code for Person table

// 1) Sample code for Person table
public class Person
     // 2) The columns of Person table.
     public int ID { get; set;}
     public string FirstName { get; set;}
     public string LastName { get; set;}
     public GenderType Gender { get; set;}
     public DateTime DateOfBirth { get; set;}
     public int Age { get; set;}
     public string Address { get; set;}
     public string City { get; set;}
     public string Country { get; set;}  // 3) Input Gender property of Person.
     public string IdentityCardNo { get; set;}
     public string BioData { get; set;}
     public string PictureUrl { get; set;}

ASPX code for ListBox

// 1) Defines the ListBox tag-helper
<ListBox ID="LB1" SkinStyle="SimpleGrey" Width="250">
     // 2) Defines Country propertyto bind inside DataPropertyNames tag
     <DataPropertyName Name="Country" />
     // 3) Defines a header for Country name
     <ListTableColumn Caption="Country" Name="Name" Key="true" />
     // 4) Defines Country items
          <ListTableCell>United Kingdom</ListTableCell>
     <ListTableRowItem Selected="true">

Related Topics :

Irwsoft Data Ultimate Edition 4.0 supports data-schema extension (entity framework, linq to sql, simple class, and etc).