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.
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? :-)
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
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
is working on a reply...