As pointed out in the previous post (<here>) it is possible to call the MVC RenderPartial from within a webform. This assumes that your webform has all the information it needs to populate the required model. Where this information is not available, a good alternative is to use RenderAction from within the webform: Add the … Continue reading Using MVC RenderAction within a Webform
I you are lucky, like me, you get to work on both MVC and Webforms projects, often simultaneously, in mixed environment projects. One question that commonly arises – how to render an MVC partial view within a webform. A little study of the MVC source code, and it reveals that its relatively easy, as long … Continue reading Using MVC RenderPartial within a webform
Within ASP.Net MVC, there is a handy RequireHttpsAttribute that you can use to automatically direct an incoming action request to go through HTTPS. Typically this would be used for a login or checkout process: Unfortunately, once switched over to HTTPS, all subsequent requests will also be sent via HTTPS as there is no build in … Continue reading Switching to Https and back to Http in ASP.NET MVC
I’m currently working on an interesting project which is a combination of legacy code built using Asp.net webforms, as well as a whole bunch of new functionality developed using Asp.net MVC. Due to the sheer volume of code and functionality within the existing system there is simply no possibility of rewriting all the existing forms … Continue reading Am I in an MVC or Webforms environment?