Glossary Item Box
Editor allows user to insert new or modify existing images in the HTML document. In "Image properties" dialog user may set various parameters of the image.
This chapter contains the following sections:
At the bottom of the dialog - preview area with image.
![]() |
In this dialog user may to set properties of the new image or existing image. Next properties in this dialog:
|
To enable the image management function of the Editor control, you must set up a managed image gallery folder.
This is simply a folder in which you will be placing images for your users
to use in their content. Create a folder in your application's root folder.
(For most applications, this is your web server's root folder, or the folder
where your Visual Studio project file is located.) The folder can be named
something like /uploads/, /images or /UserImages.
Make sure that the MACHINE/ASPNET user
has Read+Write permissions on this folder and its contents.
You can easily specify the image gallery path using the GalleryFolderUrl property - for example GalleryFolderUrl = "c:\inetpub\wwwroot\uploads".
Editor has taken steps to improve image insertion functions. A new capability is Automatic Image Resizing. If uploaded images are too large to display for your applications (for example the width of image is too big) , automatic resizing makes them fit and keep the original ratio automatically. For use this option - click buttons "Lock/Unlock sizes" and "Original size".
You can add an image to your web page using the Image
properties button to add an image from your web site gallery.
To add an image using the this button: 
Place the mouse cursor in your editor where you want the image to appear.
Do one of the following:
Click the Image properties button in the toolbar - Image
gallery dialog appears
MediaGallery can work with files (when every element of this gallery is a file in given folder) and with MS SQL or MS Access databases.
See "How to work with gallery" for more info.
After you add an image to a page (see " Adding an image to a page "), you can change its viewable properties. Image properties include location of image source, display area size, padding, alignment, border, and alternate text. Modifying image properties only affects the way the image appears on the page.
To change image properties - in your editor, do one of the following:
You can easily add a border to any image on your page.
You can adjust the width of the border, the color of the border or you can
delete the border.
To add or change a border around an image:
The border around the image appears or the border width changes.
To delete a border around an image:
The border around the image disappears.
You can change the alignment attribute of an image on the page using Image Properties dialog.
To change alignment attribute of an image :
) in
the editor toolbar.| See Also |
Controls: Editor | How to work with gallery
Editor dialogs: Image map dialog