is it possible to render an web-forms aspx page which has codebehind ?
atm I think that I’m going to do this using an iframe, but it would be much better without.
anybody knows if this is possible ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, it’s possible to have an aspx with codebehind, as long as its still a proper Mvc view. If it’s a WebForms page with controls then things will probably not work. Also if you are using page events (PreRender etc) then it might also not work.
Composing the final output from a mix of Mvc views and WebForms pages is not supported. You will have to use things like iframes
The reason why views in Mvc usually don’t have a codebehind is because this might encourage people to put application logic in them which is against the Mvc pattern