Irwsoft Web Control

Brief Information
DescriptionA control to display an image.
Featuresdisplay an image with simple elegant style.
Picture control
Picture control to display an image.

The Picture control is a read-only control to display an image. The control displays an image with most simple style but keep it elegant.

Example : Display Image data of Person table with Picture

C# code for Person table

// 1) Sample code for Person table
public class Person
     // 2) The columns of Person table.
     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 ImageUrl { get; set;}  // 3) Image property of Person.

ASPX code for Picture

// 1) Defines the Picture control
<irw:Picture ID="PCT1" runat="server" SkinStyle="White" AlternateText="The data-person's picture."
     Height="384" Width="512">
     <ViewPropertyNames>  // 2) Defines PictureUrl property to bind inside ViewPropertyNames tag
          <irw:ViewPropertyName Name="ImageUrl" DataType="ImageUrl" />

Related Topics :

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