SiteMap  | About    

Image Control

Image control is to display any valid image supported by the requesting browser on the Web page. The path to the displayed image is specified by setting the ImageUrl property.


  Image1.ImageUrl = ""


  Image1.ImageUrl = "";

You can specify the text to display in place of image when the image is not available by setting the AlternateText property.

  Image1.AlternateText = " Logo"


  Image1.AlternateText = " Logo";

The following ASP.NET program load an Image from a URL and set an alternate text.



<html xmlns="">
<head id="Head1" runat="server">
	<title>Untitled Page</title>
	<form id="form1" runat="server">
		<asp:Image ID="Image1" runat="server" />

Click the following links to see full source code

C# Source Code
VB.NET Source Code
default.aspx.vb (C) 2018    Founded by raps mk
All Rights Reserved. All other trademarks are property of their respective owners.