Hi,
Here I tried some code for your requirement.
to show multiple images on running process.But I used Jquery for that
If you try this you must like way of Jquery.
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script src="Scripts/jquery-1.4.1-vsdoc.js" type="text/javascript"></script>
<script src="Scripts/jquery-1.4.1.js" type="text/javascript"></script>
<script language ="javascript" >
function f1() {
frstcpy("frstproc","Yes");
jQuery.post("default11.aspx?action=cpy", { name: "fileone" }, function (data) {
frstcpy("frstproc", "No");
});
}
function f2() {
frstcpy("scndproc", "Yes");
jQuery.post("default11.aspx?action=cpy", { name: "filetwo" }, function (data) {
frstcpy("scndproc", "No");
});
}
function frstcpy(tid, opt) {
if (opt == "Yes") {
$("#" + tid).html("copying.....");
}
else {
$("#" + tid).html("");
}
}
</script>
</head>
<body >
<form id="form1" runat="server">
<div>
<div id="frstresdiv">
<input type ="button" value ="copyfileone" id="btncopyone" onclick="f1()" />
<br />
<div id="frstproc"></div>
</div><br />
<div>
<input type ="button" value ="copyfiletwo" id="btncopytwo" onclick ="f2()" />
<br />
<div id="scndproc"></div>
</div>
</div>
</form>
</body>
</html>
And code behind file contains following code
protected void Page_Load(object sender, EventArgs e)
{
if (Request.QueryString["action"] != null)
{
Response.Clear();
Thread.Sleep(3000);
Response.End();
}
}
Here I used div tag html instead of this you can display image also.
step into Jquery its really good experience to develop effective outputs
All the Best