Irwsoft NETCore Asp

FormData
Brief Information
DescriptionA form data entry tag-helper to input many fields.
FeaturesA compact data entry form with auto validation.
Three form modes are View, Insert and Edit.
Form tag-helper
FormData tag-helper in Insert mode

Form tag-helper
FormData tag-helper in View mode


The INA ASP.net FormData tag-helper is a data entry tag-helper. The tag-helper generates all input controls depend on properties specified. There is also auto validation for the data types for each properties. With this idea make Form tag-helper is the most powerfull tag-helper for data-entry application because it is easy to use and make developement faster.

There are three modes of FormData tag-helper. The View mode displays plain table to display data only with Edit or Insert buttons. The Insert mode gives you blank entry data with Save or Cancel buttons. The Edit mode gives you entry data to edit current data object with Save or Cancel buttons. The FormData tag-helper will generate all neccessary controls depend on the properties sepcified.

Example : Input biodata of Person table with FormData


C# code for Person table

// 1) Sample code for Person table
public class Person
{
     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;}
     public string IdentityCardNo { get; set;}
     public string BioData { get; set;}
     public string PictureUrl { get; set;}
}


ASPX code for Form

// 1) Defines the FormData tag-helper
<FormData ID="FR1" SkinStyle="SimpleGrey" FormLayoutMode="Table" ColumnCount="3" ColumnWidths="400,600">
     <FormDataHeader>
          <div style="width: 100%;"text-align: center;">Identity Card Registration Form</div>
     </FormDataHeader>
     // 3) Defines some properties to bind inside DataPropertyNames tag
     <FormDataPropertyName Name="FirstName" />
     <FormDataPropertyName Name="LastName" />
     <FormDataPropertyName Name="DateOfBirth" DataType="Date" AllowEmpty="false" />
     <FormDataPropertyName Name="Age" DataType="Integer" />
     <FormDataPropertyName Name="Gender" DataType="List" Type="SamplesNET2.Data.GenderType" AllowEmpty="false"/>
     <FormDataPropertyName Name="IdentityCardNo" />
     <FormDataPropertyName Name="Address" />
     <FormDataPropertyName Name="City" />
     <FormDataPropertyName Name="Country" />
     <FormDataPropertyName Name="PictureUrl" DataType="ImageUrl" AllowEmpty="false" />
     <FormDataPropertyName Name="BioData" DataType="MultiText" />
     <FormDataFooter>
          <div style="width: 100%;"text-align: right;">Irwsoft.com</div>
     </FormDataFooter>
</FormData>



Related Topics :


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