load a user control programmatically in to a html text writer

后端 未结 3 676
执笔经年
执笔经年 2020-12-29 15:26

I am trying to render a user control into a string. The application is set up to enable user to use tokens and user controls are rendered where the tokens are found.

<
3条回答
  •  温柔的废话
    2020-12-29 16:24

    You would need to attach the control to a Page by adding it to a Controls collection of the Page or a Control on the page. This won't solve all of your problems unless you do something to explicitly disable rendering during the normal page render event.

提交回复
热议问题