Irwsoft Web Control

InputText
Brief Information
DescriptionA control to input text.
FeaturesDataFormat with data masking.
Bind one or more properties at once.
InputText control
InputText control to enter FirstName and LastName


The IWC ASP.net InputText control is a control to input text. This control have DataFormat with data masking. The control can bind many properties at once.


Input-Helper

  • Date/Time data-type
    DateTimePicker as input helper for Date/Time data-type
  • Time data-type
    TimePicker as input helper for Time data-type


All IWC input control designed using MVVM pattern which mean you can have a data-model class representing a domain/table, but ofcourse you can still using classic CRUD programming without any data-model. You can use simple C# class, Irwsoft Data Framework, Entity Framework, Linq to Sql or other .NET ORM. Then set its data-source and some properties to bind. The multi-properties means the control handle input at once using data masking.

Example : Input FirstName and LastName data of Person table with InputText at once


C# code for Person table

// 1) Sample code for Person table
public class Person
{
     public int ID { get; set;}
     public string FirstName { get; set;}  // 2) Input FirstName and LastName property of Person.
     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 InputText

// 1) Defines the InputText control for FirstName and LastName
//    NOTE : DataFormat required for multi properties entry.

<irw:InputText ID="IT1" runat="server" SkinStyle="SimpleGrey" DataFormat="{0} {1}" Width="400px">
     <DataPropertyNames>  // 2) Defines FirstName and LastName property to bind inside DataPropertyNames tag
          <irw:DataPropertyName Name="FirstName" AllowEmpty="false" />
          <irw:DataPropertyName Name="LastName" AllowEmpty="false" />
     </DataPropertyNames>
</irw:InputText>


Related Topics :


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