Irwsoft Web Control

Link
Brief Information
DescriptionA link control to move to other destination within page or other page.
Features
  • Displays either clickable text and/or image.
  • Supports image preview and/or file downloading for Image/File data-type.
Link control
The Link control displays an image of PictureUrl.


The Link control is a read-only control to display a link. This control have feature to display either clickable text and/or image. The TextLocation property will determine the text location from image.

The Link provides support for image previewing and/or file downloading for Image/File data-type. This mean you do not need extra work for Image/File data.

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.

Example : Displays PictureUrl data of Person table with a Link control.


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;}  // 2) Displays PictureUrl property of Person.
}


ASPX code for Link

// 1) Defines the Link control for user to trigger displaying image.
<irw:Link ID="LINK1" runat="server" SkinStyle="SimpleGrey" Text="Display Image"
     OnImagePreview="LNK1_ImagePreview" OnFileDownload="LNK1_FileDownload">
     <ViewPropertyNames>  // 2) Defines PictureUrl property to bind inside ViewPropertyNames tag
          <irw:ViewPropertyName Name="PictureUrl" DataType="ImageUrl" />
     </ViewPropertyNames>
</irw:Link>


Related Topics :


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