Important properties of Image control : Image « Controls « ASP.NET Tutorial

AlternateText:              alternate text for the image required for accessibility.

DescriptionUrl:             a link to a page that contains a detailed description of the image (required to make a complex image accessible).

GenerateEmptyAlternateText: set the AlternateText property to an empty string.

ImageAlign:                 align the image relative to other HTML elements in the page. Possible values are AbsBottom, AbsMiddle, Baseline, Bottom, Left, Middle, NotSet, Right, TextTop, and Top.

ImageUrl:                   specify the URL to the image.

<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<script runat="server">

    void Page_Load()
        Random rnd = new Random();
        switch (rnd.Next(3))
            case 0:
                imgRandom.ImageUrl = "Picture1.gif";
                imgRandom.AlternateText = "Picture 1";
            case 1:
                imgRandom.ImageUrl = "Picture2.gif";
                imgRandom.AlternateText = "Picture 2";
            case 2:
                imgRandom.ImageUrl = "Picture3.gif";
                imgRandom.AlternateText = "Picture 3";

<html xmlns="" >
<head id="Head1" runat="server">
    <title>Show Image</title>
    <form id="form1" runat="server">

        Runat="server" />


3.7.1.Important properties of Image control
3.7.2.Load Image to asp:Image
3.7.3.Set ImageUrl and AlternateText for asp:Image (
3.7.4.Image alignment