web 2.0

ASP.NET(vb.net) & HTMLImage

ASP.NET(vb.net) & HTMLImage - HTMLImage : Creates a server-side control that maps to the <img> HTML element and allows you to display an image

ShotDev Focus:
- ASP.NET(vb.net) & HTMLImage

ASP.NET(vb.net) & HTMLImage

Tag Control :

<img id="programmaticID"
alt="alttext"
align= top | middle | bottom | left | right
border="borderwidth"
height="imageheight"
src="imageURL"
width="imagewidth"
runat="server" >

Example

HTMLImage.aspx

<%@ Page Language="VB" %>
<script runat="server">

Sub Page_Load(sender As Object,e As EventArgs)
Me.image1.Src="images/mygirl.jpg"
Me.image1.Alt="My Girl"
Me.image1.Border="1"
Me.image1.Width="200"

Me.image1.Attributes.Add("OnClick","JavaScript:MyGirl();")
End Sub

</script>

<script language="JavaScript">
function MyGirl()
{
alert('I Love My Girl');
}
</script>
<html>
<head>
<title>ShotDev.Com Tutorial</title>
</head>
<body id="body1" runat="server">
<form id="form1" runat="server">
<img id="image1" runat="server">
</form>
</body>
</html>

Screenshot

ASP.NET(vb.net) & HTMLImage
.
.
.
Download this script.
Download

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (No Ratings Yet)
Loading ... Loading ...

Leave a Reply

You must be logged in to post a comment.