Irwsoft NETCore Asp

FileClientProvider
Brief Information
DescriptionA service tag-helper to provide file or image for downloading or previewing.
Features
  • Preview for the image file.
  • File or image downloading


FileClientProvider supports a link to display/download image file automatically

FileClientProvider tag-helper
FileClientProvider tag-helper provides previewing and downloading an image of person object.


The INA ASP.net FileClientProvider is a service tag-helper to provide file or image downloading. The tag-helper allows user interaction to view image file before downloading. This tag-helper provides service to other tag-helper like hypperlink or button to trigger downloading or previewing.

Simple implementation and less code is the advantages of using this tag-helper to provide image or file previewing and/or downloaing. Also the inegration with other tag-helper such as DataView or Form controls supports them to display any image or file in their datasource.

Example : Provides image downloading of PictureUrl data of Person table with FileClientProvider


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 FileClientProvider

// 1) Defines the Link tag-helper for user to trigger displaying image
//    NOTE : you can use common ASP.net tag-helper like HyperLink or ImageButton.

<Link ID="LINK1" runat ="server" Text="Display Image"></Link>

// 2) Defines the FileClientProvider tag-helper to provide image downloading or image previewing
// 3) Sets the TargetControlID to HL1 and Arguments to the ID of the Person object.

<FileClientProvider ID="FCP1" SkinStyle="SimpleGrey"
     TargetControlID="LINK1" Arguments="8">
</irw:FileClientProvider>



Related Topics :


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