Adding WebControls in HttpHandlers

  • Thread starter Thread starter Rajagopalan
  • Start date Start date
R

Rajagopalan

Hi,
Can I add Web controls from HttpHandlers?

say

In Handler's ProcessRequest

ProcessRquest(HttpContext context)
{
TextBox t1 = new TextBox();
I want this control to be rendered ...

}

Thanks,
Rajagopalan V
 
Rajagopalan said:
Hi,
Can I add Web controls from HttpHandlers?

say

In Handler's ProcessRequest

ProcessRquest(HttpContext context)
{
TextBox t1 = new TextBox();
I want this control to be rendered ...

}

No. You need to do that in a class derived from Page. Note that Page
implements IHttpHandler...
 
Back
Top