In this article we will introduce with HTML Image control in ASP.NET using C#.
HTML Image Example in ASP.NET Using C#:
Html image be a part of HTML Control that using through Asp.net Toolbox. Html Image defined by <img> tag. <img> tag defined empty that means not any attributes. but if < img src=""> content an src : source path location or URL of image.URL points the location where image Stored.
Image.aspx(Design Page):
Image.aspx(Source Code):
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="image.aspx.cs" Inherits="image" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server"> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server"> <div> <h2 style="color: Black"> HTML Image in ASP.NET 4, C#</h2> <img alt="" src="file/i1.jpeg" style="border: medium solid #000000" /> </div> </asp:Content>
[ 0 ] Comments