ASP.NET Server.Execute

Posted by justin on Stack Overflow See other posts from Stack Overflow or by justin
Published on 2009-04-01T19:06:39Z Indexed on 2010/05/12 6:04 UTC
Read the original article Hit count: 193

Filed under:
|

I'm having some problems with Server.Execute that I can't seem to find any details on.

Page page = new WidgetProcessor(Widget);
Server.Execute(page, htmlTextWriter, true);

The Widget in the above code is a simple object that knows how to instantiate a usercontrol. The WidgetProcessor takes a Widget and adds the widgets control to the page. This works fine on the initial load, it doesn't seem to handle postbacks however; it never actually fires the user controls events, it just consistently returns the original page as if you had never posted back.

I've found this article from 2003: http://support.microsoft.com/kb/817036, though I would think they would have fixed this by now.

Any help would be appreciated.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about c#