Hello:
I've called a page handler from my page. I took a HTML image field from that I called hadler
<img alt="Document page" src="Handlers/DocumentPageHandler.ashx" />
This handler calls a class
<% @WebHandler Language="C#" Class="DocumentPageHandler" Codebehind="DocumentPageHandler.cs" %>
The job of this class is to create image. It's working fine. This page inherits System.Web.UI.Page class
But now I need to do the same thing from a user control which inherits ModuleControl class created my me.ModuleControl inherits UserControl class as follows
public
class ModuleControl : UserControl
{
.........................
protected override void OnPreRender(EventArgs e) //OnInit(EventArgs e)
{
base.OnPreRender(e);Trace.Write("Begin CustomizeControl()");
CustomizeControl();
Trace.Write("End CustomizeControl()");
}
..................................
}
But after this DocumentPageHandler.cs never called. As a result i can't see the image inside the image control.
I'm quite unfamiliar with the page handler technique. So, I can't understand where should i've to call it in this scenario.
I need help.
Thnx-
Razin