|
-
Feb 6th, 2006, 02:10 AM
#1
Thread Starter
Member
Chage an img dynamically
Hai,
Iam working ASP.Net with C#.
iam using web image server control.
i want to change the image dynammically depending on the intermediate results from the written code while page is still in execution(execution not yet completed).
For sample i have tried with the following code but i did not get it.
i have tried in asp.net with vb.net
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
Response.Buffer = True
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Response.Flush()
Img.Src "file:///D:\IONETECH\Projects\computer1.png"
Threading.Thread.Sleep(8000)
Response.Flush()
Img.Src = "file:///D:\IONETECH\Projects\logo.png"
Threading.Thread.Sleep(8000)
Response.Flush()
Img.Src = "file:///D:\IONETECH\Projects\computer.png"
Threading.Thread.Sleep(8000)
Response.Flush()
End Sub
Plz. say the solution for the task.
Thanks in advance.
Rajeswari.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|