ASP.NET 3.5 and above only

Obout.Ajax.UI Controls - Smart Image - Server side

Obout.Ajax.UI.SmartImage.SmartImage class

 Inheritance Hierarchy

<%@ Register Assembly="Obout.Ajax.UI" Namespace="Obout.Ajax.UI.SmartImage" TagPrefix="obout" %>

Properties

Name Description
propertyBinaryValue byte[]. Gets or sets the image's byte array.
propertyBorderColor System.Drawing.Color. Gets or sets the border color of the control. (Inherited from WebControl.)
When this property is not set, the browser will use its default border color.
propertyBorderStyle System.Web.UI.WebControls.BorderStyle. Gets or sets the border style of the control. (Inherited from WebControl.)
Default NotSet.
propertyBorderWidth System.Web.UI.WebControls.Unit. Gets or sets the border width of the control. (Inherited from WebControl.)
Default Empty.
propertyClientID String. Gets the server control identifier generated by ASP.NET. (Inherited from Control.)
propertyCssClass String. Gets or sets the Cascading Style Sheet (CSS) class rendered by the control on the client. (Inherited from WebControl.)
Default string.Empty.
propertyGetImageMode Obout.Ajax.UI.SmartImage.GetImageMode. Gets or sets a method used to retrieve the source image for the control.

Obout.Ajax.UI.SmartImage.GetImageMode enum contains the following fields:
  • Page - get image on the Page initialization.
  • HttpHandler - get image using the Http handler, see the HttpHandlerUrl property.
    This method is usefull when the control is placed inside repeaters, views, templates of the Grid, etc.

Default Obout.Ajax.UI.SmartImage.GetImageMode.Page .
propertyHeight System.Web.UI.WebControls.Unit. Gets or sets the height of the control. (Inherited from WebControl.)
Default Empty.
propertyHttpHandlerUrl String. Gets or sets the Url of .ASHX file used for feedback when the GetImageMode property is set to HttpHandler.

Default "OboutSmartImageHandler.ashx".
propertyID String. Gets or sets the programmatic identifier assigned to the server control. (Inherited from Control.)
propertyImageAlign System.Web.UI.WebControls.ImageAlign. Gets or sets the alignment of the Image control in relation to other elements on the Web page.
Default NotSet.
propertyImageUrl String. Gets or sets the URL that provides the path to an image to display, is used when 'BinaryValue' is not specified.
Default string.Empty.
propertyOptimizeMode Obout.Ajax.UI.SmartImage.OptimizeMode. Gets or sets a value indicating how the image should be optimized if width and/or height of the image are set.

Obout.Ajax.UI.SmartImage.OptimizeMode enum contains the following fields:
  • Fill - the image will be optimized to fill the given dimensions if both dimensions are set or match the single given dimension;
  • Fit - the image will be optimized to fit the given dimensions if both dimensions are set or match the single given dimension;
  • NotSet - original image will be used.

Default Obout.Ajax.UI.SmartImage.OptimizeMode.NotSet .
propertyRelativeImageUrl Bool. Gets or sets a value indicating whether to use realtive URL for the generated image.

Default true.
propertyToolTip String. Gets or sets the tooltip of the control. (Inherited from WebControl.)
Default string.Empty.
propertyUniqueID String. Gets the unique, hierarchically qualified identifier for the server control. (Inherited from Control.)
propertyWidth System.Web.UI.WebControls.Unit. Gets or sets the width of the control. (Inherited from WebControl.)
Default Empty.

"I like your site and think your controls are amazing."

Vaughn Haybittle

Random testimonial   All testimonials