Search code examples
asp.netascx

Embed an ASPX page into an ASCX Control?


Is it possible to embed an ASPX page into an ASCX control?


Solution

  • No.

    That would be a bit like building a car into the passenger seat.

    -- Edit:

    To be clear, you could potentially consider various ways of grabbing the content (such as actually requesting it) and then including it in your ASCX control, but it would, in general, but a quite "backwards" approach. What are you trying to do?