![]() ![]() Then Dim image As New ImageItem("~/my-images/" & files(iCounter).Name, "", "") Trim(files(iCounter).Extension) = ".bmp" Or _ Trim(files(iCounter).Extension) = ".png" Or _ Trim(files(iCounter).Extension) = ".jpeg" Or _ If Trim(files(iCounter).Extension) = ".jpg" Or _ MapPath( "~/my-images/"))ĭim files As FileInfo() = dirInfo. Protected Sub Page_Load(sender As Object, e As System. ImageItem image = new ImageItem( "~my-images/" + ![]() New System.IO.DirectoryInfo(Server.MapPath( "~/my-images/")) įileInfo files = dirInfo.GetFiles( "*.*") Protected void Page_Load(object sender, EventArgs e) Public partial class SiteMaster : .MasterPage Infragistics Image Viewer Control for Asp.Net You can do this by dragging the control from the tool bar to your page. This method is popular among web developers, and we will an example using a similar method.įirst, you will have to add the image viewer control on the web page. Storing and extracting files, particularly images, from a folder, is a simple process also considered a quicker option than doing the same with a database table. There are interesting features in this control that we will explore in this article. Let’s find out how we can populate the “WebImageViewer” control with images, which we will extract from a folder in the server and display it. Depending upon your requirement, you can adjust your tool either horizontally or vertically, extract the images from either a folder directly or hook it with a data source, look for the images in a database table and display it. Infragistics Asp.Net Image viewer, also known as WebImageViewer, has everything that a web developer needs, which will allow them to add an easy to use sliding image viewer on their web page. Image viewers come in many styles and orientations. Amazon is a good example, as it relies heavily on Sliding Image Viewers to display a range of products. Today, these tools are widely used in online retail stores for displaying images of various products. Often we use an Image viewer for displaying multiple images in a single container. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |