Answered by:
asp.net ajax update panel not working

Question
-
Hi all
i am trying to call handler.ashx page on button click event with butten in ajax update panel , but handler code is not getting executed, but it needs to refresh the page.
here is the code : handler.ashx
public class Handler : IHttpHandler { getImageService.ScreenSenderClient cli = new getImageService.ScreenSenderClient(); public void ProcessRequest (HttpContext context) { byte[] buffer = cli.GetImage(); context.Response.Buffer = true; context.Response.BinaryWrite(buffer); context.Response.Flush(); context.Response.End(); } }
and button and imagebox in ajax update panel
Image1.ImageUrl = "~/Handler.ashx";
how ever the code in handler works only first time after i refresh page but not after that.
same question posted here but no luck http://stackoverflow.com/questions/19835953/asp-net-handler-ashx-running-only-on-refresh-in-ajax/19839250#19839250
thanks in advance.
- Moved by Eason_H Friday, November 8, 2013 8:45 AM
Friday, November 8, 2013 4:18 AM
Answers
-
Hi,
Since the issue regards ASP.NET and website deployment. I suggestion you post the question in the ASP.NET forums at http://forums.asp.net/. It is appropriate and more experts will assist you.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.Friday, November 8, 2013 8:45 AM
All replies
-
Hi,
Since the issue regards ASP.NET and website deployment. I suggestion you post the question in the ASP.NET forums at http://forums.asp.net/. It is appropriate and more experts will assist you.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.Friday, November 8, 2013 8:45 AM -
posted on asp.net forum
http://forums.asp.net/p/1948720/5557422.aspx?p=True&t=635197239087073642&pagenum=1
@admin please remove thread from here.
Monday, November 11, 2013 4:48 AM -
I've not removed your question, as the whole point of this forum is to point people to the right forum - now, and in the future.
So, for years to come,. people searching MSDN for this issue will know to go to http://forums.asp.net/
When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer
My Blog: http://unlockpowershell.wordpress.com
My Book: Windows PowerShell 2.0 Bible
My E-mail: -join ("6B61726C6D69747363686B65406D742E6E6574"-split"(?<=\G.{2})",19|%{[char][int]"0x$_"})Wednesday, November 20, 2013 11:12 PM