Irwsoft NETCore Asp

Brief Information
DescriptionA tag-helper to display read-only text.
FeaturesBind one property at once.
ReadOnlyText tag-helper
ReadOnlyText tag-helper to display FirstName and LastName

The INA ReadOnlyText tag-helper is a tag-helper to display read-only text. The tag-helper can bind one property only, usually used to display data in Form with View data mode.

Example : Displays FirstName and LastName data of Person table with ReadOnlyText 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 ReadOnlyText

// 1) Defines the ReadOnlyText tag-helper for FirstName and LastName
<ReadOnlyText ID="Name" SkinStyle="SkyBlue" DataFormat="{0} {1}">
     // 2) Defines FirstName and LastName property to bind inside ViewPropertyNames tag
     <ViewPropertyName Name="FirstName" />
     <ViewPropertyName Name="LastName" />

Related Topics :

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