Hi,
I did what you want check this once
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script src="Scripts/jquery-1.4.1.js" type="text/javascript"></script>
<script src="Scripts/jquery-1.4.1-vsdoc.js" type="text/javascript"></script>
<script language="javascript">
function f1() {
$("#maincontent").append(" <img class="\"myimg\"" src="\"Images/User1/Blue%20hills.jpg\"" />");
$(".myimg").click(function () {
alert("fgdfg");
});
}
</script>
<style type="text/css">
.myimg
{
width: 100px;
height: 100px;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div>
<input type="button" onclick="f1()" value="addd Tag" />
<div id="maincontent" runat="server">
</div>
</div>
</form>
</body>
</html>
Here you've to place that in function
All the Best