Irwsoft Web Control

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

Form control
Form control in View mode

The IWC Form control is a data entry control. The control 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 control is the most powerfull control for data-entry application because it is easy to use and make developement faster.

There are three modes of Form control. 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 Form control will generate all neccessary controls depend on the properties sepcified.

All IWC input control designed using MVVM pattern which mean you can have a data-model class representing a domain/table. You can use simple C# class, Irwsoft Data Framework, Entity Framework, Linq to Sql or other .NET ORM. Then set its data-source and a property to bind.

Example : Input biodata of Person table with Form

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 Form control
<irw:Form ID="FR1" runat="server" SkinStyle="SimpleGrey" FormLayoutMode="Table"
     OnEdit="FR1_Edit" OnInsert="FR1_Insert" OnSaving="FR1_Saving" OnSaved="FR1_Saved" OnCancel="FR1_Cancel"
     OnImagePreview="FR1_ImagePreview" OnFileDelete="FR1_FileDelete">
     <TableStyle ColumnCount="2" LabelWidth="150" DataWidth="250">  // 2) Defines the Table styles tag
          <div style="width: 100%;"text-align: center;">Identity Card Registration Form</div>
     <DataPropertyNames>  // 3) Defines some properties to bind inside DataPropertyNames tag
          <irw:DataPropertyName Name="FirstName" />
          <irw:DataPropertyName Name="LastName" />
          <irw:DataPropertyName Name="DateOfBirth" DataType="Date" AllowEmpty="false" />
          <irw:DataPropertyName Name="Age" DataType="Integer" />
          <irw:DataPropertyName Name="Gender" DataType="List" Type="SamplesNET2.Data.GenderType" AllowEmpty="false"/>
          <irw:DataPropertyName Name="IdentityCardNo" />
          <irw:DataPropertyName Name="Address" />
          <irw:DataPropertyName Name="City" />
          <irw:DataPropertyName Name="Country" />
          <irw:DataPropertyName Name="PictureUrl" DataType="ImageUrl" AllowEmpty="false" />
          <irw:DataPropertyName Name="BioData" DataType="MultiText" />
          <div style="width: 100%;"text-align: right;"></div>

Related Topics :

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