ASP.NET Ajax Javascript (Specification) | |
---|---|
ImageGear.Web.UI.PageView = function() {}; |
ASP.NET Ajax Javascript (Usage) | |
---|---|
var instanceVar = new ImageGear.Web.UI.PageView(); |
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 });
Object
Sys.Component
Sys.UI.Control
ImageGear.Web.UI.PageView