how can i load ascx control in asp.net mvc view ? i am using url.action in src but it is not working. Can i do that
A:
If you want the ascx to appear in the response then you can use the Html.Partial
or Html.RenderPartial
methods.
If you want to have an IFrame in the response that will load some other page, then you cannot use an ascx control alone. You will need a full view (aspx) that is returned from some action method. The full view could use Html.Partial
and Html.RenderPartial
to render your ascx.
marcind
2010-07-16 21:27:19