ImageGear for .NET
PageView Class
See Also  Members   Send comments on this topic.
ImageGear.Web.UI Namespace Client API Library > ImageGear.Web.UI Namespace : PageView Class

Glossary Item Box

This is an ASP.NET client control for viewing images.

Syntax

ASP.NET Ajax Javascript (Specification) 
ImageGear.Web.UI.PageView = function() {};
ASP.NET Ajax Javascript (Usage) 
var instanceVar = new ImageGear.Web.UI.PageView();

Remarks

This ASP.NET client control is an image viewer.

While it is possible to create an instance of this control using client-side JavaScript, you will normally create it by placing a server-side PageView control on an aspx page. If you wish to create an instance of this control using client-side JavaScript, take the following steps:

  • Add an empty <DIV> to your HTML.
  • Give your <DIV> a unique ID (Example:viewer1).
  • Give your <DIV> a size, in pixels, using either a CSS style sheet or an inline style.
  • If using Microsoft Ajax library, add the following code to your page.

    $create(ImageGear.Web.UI.PageView, { imageHandlerUrl: "ImageGearService.svc", artServiceOption: ImageGear.Web.UI.ImGearArtDataServices.ArtDataService }, null, null, $get("viewer1"));
    

  • If using ImageGear jQuery Plugins, add the following code to your page.

    $("#viewer1").ImGearPageViewPlugin({ imageHandlerUrl: "ImageGearService.svc", artServiceOption: ImageGear.Web.UI.ImGearArtDataServices.ArtDataService });
    

Inheritance Hierarchy

Object
   Sys.Component
      Sys.UI.Control
         ImageGear.Web.UI.PageView

See Also

©2013. Accusoft Corporation. All Rights Reserved.