Irwsoft NETCore Asp

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


The INA ASP.net InputText tag-helper is a tag-helper to input text. This tag-helper have DataFormat with data masking. The tag-helper 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


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 tag-helper for FirstName and LastName
//    NOTE : DataFormat required for multi properties entry.

<InputText ID="IT1" SkinStyle="SimpleGrey" DataFormat="{0} {1}" Width="400px">
     <DataPropertyName Name="FirstName" AllowEmpty="false" />
     <DataPropertyName Name="LastName" AllowEmpty="false" />
</InputText>


Related Topics :


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