Attribut ImageUrl ASP.NET
Définition et utilisation
L'attribut ImageUrl est utilisé pour définir ou retourner l'URL de l'image à afficher.
Syntaxe
<asp:Image ImageUrl="URL" runat="server" />
Attribut | Description |
---|---|
URL | L'URL de l'image à utiliser. |
Exemple
L'exemple suivant définit l'attribut ImageUrl pour le Contrôle Image :
<form runat="server"> <asp:Image id="Img1" runat="server" ImageUrl="img.gif" /> </form>
Exemple
- Définir l'attribut ImageUrl pour le Contrôle Image