Click here to Skip to main content
15,891,529 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hi,

I want to call http handler on button click event. but i am getting error "Enable to procecc child Request Handler.ashx"

this is my code on button click.
C#
protected void Button1_Click(object sender, EventArgs e)
        {
            server.transfer("Handler.ashx",true);//Here i am getting error
        }
and My Handler is
 public class Handler : IHttpHandler,IRequiresSessionState 
    {
        public void ProcessRequest(HttpContext context)
        {
           //Block of Code to be executed
        }
   public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }

What is the Problem with that? Please help me.
Thanks in Advance.
Posted
Updated 9-Jul-12 5:09am
v2
Comments
Sergey Alexandrovich Kryukov 9-Jul-12 15:27pm    
Tag it: language, platform, application type or UI library if applicable...
--SA

1 solution

Please follow Asp.Net forum Link[^] for your query.

The last post is the solution.
Happy coding ...:)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900