Is there a way to find out at runtime which is the context my web server control is running? I need to know at runtime if the web server control runs in mvc context or web forms context.
Asked
Active
Viewed 114 times
0
-
What do you mean by `server control`? There's no such notion in ASP.NET MVC. Please don't tell me that you are using classic WebForms server side controls in an ASP.NET MVC application. – Darin Dimitrov Sep 25 '12 at 13:17
-
Actually is not like that, not directly.. I have a TopMasterPage with WebForms in a dll and a SiteMasterPage in MVC with MasterPageFile pointing to TopMasterPage inside dll. TopMasterPage has a WebServerControl which obviously is not working and I want to change it's render in MVC context. – Cristian Nicoleta Sep 25 '12 at 13:40