Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Alan Ellicott 45 posts 104 karma points
    Sep 02, 2013 @ 15:14
    Alan Ellicott
    0

    Confused re using .net user controls in MVC enabled V6

    Hi this is probably a very niaive question.

    We recently upgraded a V4.7 site to V6.0 and rewrote everything in Razor - no XSLT at all.

    Am I completely unable to re-use any of the number of .net user controls from the old site? I have read that if config set for mvc rather than forms, I can't do this at all and "yes" the OCX files do load and render but post backs not available.

    Am I completely stumped here as some of these external controls are a real issue to rewrite in mvc.

    Thanks

  • Bo Damgaard Mortensen 719 posts 1207 karma points
    Sep 02, 2013 @ 22:29
    Bo Damgaard Mortensen
    0

    Hi Allan,

    This is probably not the answer you wanted to read, but yes, you will have to rewrite and refactor some code into partial views, strongly typed views and so on, so forth (at least from my understanding). UserControls is for webforms which is why they are not working in MVC.

    What exactly would be an issue to rewrite from webforms to MVC, if I may ask? :-)

    All the best,

    Bo

Please Sign in or register to post replies

Write your reply to:

Draft